doedit command

Dan McCabe fp at mccabes.us
Wed May 2 11:41:06 PDT 2012


On Wed, May 2, 2012 at 1:56 PM, Kenneth Brody <kenbrody at spamcop.net> wrote:

> On 5/2/2012 11:22 AM, Dan McCabe wrote:
> [...]
>
> rfdol is defined as           [! " " !](zero|lots mycent |<zero>mycent)
>> mycent is defined as<  and>  [!.!] num num</100 dollars>
>>
> [...]
>
> Replace "rfdol" with "cheque", and you will see that your code works.
>
> Assuming no typos in transcribing it into your e-mail, your "rfdol" edit
> is broken.  Given a (10,.2) field as input, as your code uses, it will fail
> for anything less than "100000.00".
>
> See if you can find it.  (If necessary, compare it to the "cheque" edit.)


Thanks Ken, I was missing the { } around the first part of the edit.  I had
tested the edit before I used it anywhere, and it always returned what I
wanted (I used several different numbers to test).  Only when I tried to
use real data and doedit did it fail on me, odd.  Now everything is working
as I originally planned.

Thanks to Joe Chasan as well.

Dan McCabe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20120502/21cae483/attachment.html 


More information about the Filepro-list mailing list