Hello boys,
I have alway a little mistake : you considerate xRec the result of previous istruction or the previours record before the update?
For example :
IF "No." <> xRec."No." THEN BEGIN
....
How do you interpreter that? Previous record or previous istruction?
0
Answers
Basically, the "IF rec.Field <> xrec.field" statement means "if the field value has changed", and you would normally use this in the field validation code. I've also used "IF rec.field = xrec.field THEN EXIT;", and this means "if the field has not changed then skip the validation logic"
RIS Plus, LLC
MVP - Business Apps
Sometimes users type in the field and accidentally change it, so at least they have to confirm the change instead of it happening automatically by mistake.
http://www.BiloBeauty.com
http://www.autismspeaks.org