TESTFIELD

Hello,

Want to do a TESTFIELD and check for any value >0.

Rec.TESTFIELD(“Unit Price”,>0 ); (THIS DOESN’T WORK)

Please could you advise.

Thanks

A

You can’t use TESTFIELD this way.

Write this

IF Rec.“Unit Price” = 0 THEN
Rec.FIELDERROR(“Unit Price”);