Runs before a record is modified in the table.
trigger OnModifyRecord(): Ok begin ... end;
(Boolean) Indicates whether a record should be modified. The return value is checked after each call. If true, the record is modified (default). If false, the record is not modified.
If an error occurs in the trigger code, the action is canceled, but the page is not closed.
You can write to the database using this trigger.