Description: Runs before the current DBForm record is left or unloaded.
Execution: The event is used by desktop and web record-change and save-check paths. It can be called from more than one point, so it may run multiple times during the same user operation. Scripts should therefore tolerate repeated execution.
Arguments and variables:
Argument_DataID: identifier of the current record before it is left.
The current DBForm entry values are also available by their entry names.
Result: Any value assigned to Result has no effect and cannot directly block the record change. The application separately decides whether to save, discard or cancel when unsaved data exists.
Availability: DBForm on desktop and web.
Example:
ShowMessage("Leaving record " + Argument_DataID);