doedit command

Kenneth Brody kenbrody at spamcop.net
Wed May 2 08:04:07 PDT 2012


On 5/2/2012 9:28 AM, Dan McCabe wrote:
> Good morning,
>
> I am running filepro 5.0.14 on a SCO 5.0.6.  I am trying to calculate a
> total amount and have it print both in the usual numeric format and also in
> the word format, such as on a check.  I have tried several things, first I
> tried:
>
>   ta = doedit(t,"rfdol")  -   the result is blank.  rfdol is a modified
> version of cheque.  I have also tried it with the global edit cheque and
> the result is still blank.
>
> Next I tried to create a temp file to hold the information I need.  I set
> up an 80 character field with the edit "rfdol".  When I put the numeric
> amount in via processing, it won't work, but if I do it through IAU, it
> works fine.
>
> Any suggestions to fix this are appreciated.
[...]

Without having the "rfdol" edit, or an actual example of the code (and input 
value) that "doesn't work", we can only offer general suggestions.

First, what do you mean by "when I put the numeric amount in via processing, 
it won't work, but if I do it through IAU[sic], it works fine"?

If you replace "rfdol" with "cheque", does it "work"?

For the line:

     ta = doedit(t,"rfdol")

What are the length and edit of ta and t?  And what is the exact value in t?

Finally, are you aware that, if you don't explicitly pass a length to the 
doedit() function, it uses the length of the input value?  (In other words, 
given your example, the result would need to fit into a field the same 
length as t.)

My guess, based on my "filling in the blanks" if your question, is that you 
are not passing a length to doedit() and the input field is not long enough.

-- 
Kenneth Brody


More information about the Filepro-list mailing list