where's the logic?
Fairlight
fairlite at fairlite.com
Fri Aug 4 16:18:26 PDT 2017
<Horshack> Ooh! Ohh! Oooooh! Mr. Radleeyyyy!</Horshack>
You're testing against a eq " ". That's a space. Given the
right-justified nature of the expression in the debugger, it's matching
true on the leading space, because filePro doesn't do exact matching, it
does lead matching of the shorter field.
Test on "" and also push out all spaces:
If: ""{a{"" eq "" or ""{a{"" eq "0"
Pretty sure I'm either right, or on the right track.
mark->
On Fri, Aug 04, 2017 at 07:02:13PM -0400, Jean-Pierre Radley via Filepro-list thus spoke:
> Something is rusty, perhaps my brain...
>
> I want to end processing if field A(12,$) is blank or equal to 0.
>
> Field A has a value of $27.84 but the test says it doesn't.
>
> This is what I see while debugging:
>
> - True ---------------------------------------------------- Prc. Name: aging -
> If: a eq " " or a eq "0"
> 9 Then: end
> Enter Field > a | $27.84|
>
> How can the test return "True" when A has a good value?
>
>
> --
> JP
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
--
Audio panton, cogito singularis.
More information about the Filepro-list
mailing list