Child_Exiting - dbGrid_
Event that is sent when a child table is about to be exited
Type: Event
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| toObj# | Integer |
Syntax
Function Child_Exiting Integer toObj# Returns Integer
Description
You can stop the exiting by returning a non-zero value. By default this will save the current record. If the save fails, the exiting is stopped.
Note that the ID of the object the user is entering is passed. This can be useful to know. If the object being entered is part of the header, you would probably want to save the current record. Note that the default errs on the side of caution (it always saves the current record).
This message is sent by exiting when child_table_state is true, and should return 0 when exiting is allowed.
Return Value
Returns 0 when exit is allowed