Why is this debugger line TRUE?
Jeff Harrison
jeffaharrison at yahoo.com
Tue Dec 13 10:46:34 PST 2011
>________________________________
> From: Craig Tooker <craig at cwtsoftware.com>
>To: filepro-list at lists.celestial.com
>Sent: Tuesday, December 13, 2011 1:21 PM
>Subject: Re: Why is this debugger line TRUE?
>
>On 12/13/2011 03:54, Stanley - stanlyn-com wrote:
>> Hi, here is a screenshot showing a line in the debugger that is evaluating
>> as true and you can clearly see it should be false. Look at the I7)
>> expression.
>>
>>
>>
>> Help, Can someone explain this?
>If I'm reading your screen shot correctly, I7) is blank and I2) is
>18.70. That would make the logic expression TRUE.
>
>Remember that if any of the associated fields in I7) and I2) match these
>criteria the expression will be true.
>
>If what is depicted is *just* I7), then you will need to let us know how
>both I7) and I2) are defined in the table (their respective length and
>edits), and how many of them exist in the table.
>
>Craig
>>
>>
>>
>> Sco unix sys 5.6 processing is 5.0.14d4
>>
>>
>>
>> http://www.stanlyn.com/public/fpError.png
>>
>> -------------- next part --------------
Also, we need to know the context of how the code is being executed. I believe that I can conclude that this from *clerk and it is not being hit from @wlf*, @wbl*, etc. If that is the case, then the debugger is simply showing you the first field in your associated field group. That is all the debugger is set up to do. However, If I recall properly, when it is being evaluated for true/false it is considering the whole group. So, for example with the I7) group, if any of these fields are blank then I7) eq "" will be true.
Conversely, if any of the I2 fields are populated then I2) ne "" would be true.
Now, if you were hitting this code from @wlfI2, for example, that would be a different story. In this case it would look at the individual field that you were leaving - not the whole group.
Jeff Harrison
jeffaharrison at yahoo.com
Author of JHExport and JHImport.
More information about the Filepro-list
mailing list