Hi
I have (In Dynamics 365 FO) made a class as a DataEventHandler for Updated on the table CustTable.
When I want to compare a field, to see is the data has been changed, I call CustTable.Orig().
This works just fine, if there is a change. But if there is no change upon clicking "Update", there is no orig, and I get this error: "Object reference not set to an instance of an object."
I would like to check whether to orig is null or not, befor using it, so I don't get the error.
How do I code (X++) a check for whether the Orig is null ?
Best Regards
Peter