Neal Matthews
17th January 2007, 13:53
Hello,
I have an exchange condition which only imports records where tdinv921.citm begins with a "1". This works fine but I have now expanded the IF statement to include another field tdinv921.shor to check for > 0 . Now the condition never returns true despite there being several records that meet this condition according to the ASCII file.
I've checked in the debugger and the value of tdinv921.citm is OK but the value of tdinv921.shor is always zero despite the fact that when this field is not in the condition several records are written to the table that have tdinv921.shor > 0.
Any assistance appreciated.
Cheers Neal
table ttdinv921
if (tdinv921.citm(1;1) = "1" and tdinv921.shor > 0) then
return (true)
else
return (false)
endif
I have an exchange condition which only imports records where tdinv921.citm begins with a "1". This works fine but I have now expanded the IF statement to include another field tdinv921.shor to check for > 0 . Now the condition never returns true despite there being several records that meet this condition according to the ASCII file.
I've checked in the debugger and the value of tdinv921.citm is OK but the value of tdinv921.shor is always zero despite the fact that when this field is not in the condition several records are written to the table that have tdinv921.shor > 0.
Any assistance appreciated.
Cheers Neal
table ttdinv921
if (tdinv921.citm(1;1) = "1" and tdinv921.shor > 0) then
return (true)
else
return (false)
endif