onvalidate of direct unit cost put the following code if CurrFieldNo = FIELDNO("Direct Unit Cost") then begin if xrec."direct unit cost" <> "direct unit cost" then error('Direct unit cost cannot be changed.'); end;
↧