>Jim:
>
>The expression is not evaluating properly on terminal services. See below truth table:
>
>If .t. .and. .t. then it does what it is supposed to.
>
>If .f. .and. .t. will not be checked so I don't know.
>
>If .t. and .f. then it does what it is NOT supposed to do!
>
>The second part of the statement is always evaluated to .t. on a workstation when it is supposed to be. I suspect the .exe flipped a bit when copied to terminal services, but I am open to suggestions.
If you think there may be some oddball error when evaluating the logical expressions, try to break it into simpler expressions, assign the value of each to a variable, assign the final value to yet another variable... and log the whole thing:
lHoursIsN=std_hoursonly = 'N'
lPayEvent99=dcpay.payevent = '99'
lPayCode00=dcpay.paycode = '00'
lWholeThing= lHoursIsN and not (lPayEvent99 and lPayCode00)
oLog.log(lHoursIsN, std_hoursonly, lPayEvent99, dcpay.payevent, lPayCode00, dcpay.paycode, lWholeThing)
if lWholething