Form Specific Events
5. Form Events
a. OnChangeRecord
b. OnDelete
c. OnDiscard
d. OnKey
e. OnKeyLostFocus
f. OnNewRecord
g. OnSave
6. Record Events
a. OnDeleteRecord
b. OnSaveRecord
All of these are dataform1 exclusive events as wxform uses only the OnMouse
event
OnChangeRecord
This is an event that is called whenever you attempt to change a record, most notably it is called by both the modifyrecord() and newrecord() functions when a form is being explicitly locked. The parameters the event handling function requires are:
dataform1 me[, type (*) reference]
OnDelete
This event is called not only by dataform1
but it can also be found in recordview
and tableview
.This event is called whenever you delete a record. The event handling function will take the following parameters:
dataform1 me[, type (*) reference]
OnDiscard
This is an event called when you discard a record in the form (make a new record but never save it). The event handling function will take the following parameters:
dataform1 me[, type (*) reference]
OnKey
This is an event that is rather special as unlike every other event this one is set using functions rather than by reference (a more detailed explanation can be found here)
OnKeyLostFocus
See above
OnNewRecord
This event is also sdhiahfaiugnlznflak is the event called if you create a new record on a form. The event handling function will take the following parameters
dataform1 me[, type (*) reference]
OnSave
This event is called not only by dataform1
but it can also be found in printform1
, recordview
, and tableview
. This event is called whenever you save a record on the form. The event handling function will take the following parameters:
dataform1 me[, type(*) reference]
Record Events
OnDeleteRecord
This event is used by dataform1table
, dataform1record
and appwindow
. It is functionally the same as onrecorddelete()
and ondelete()
so it is called when you delete a record. The parameters the event handler requires are:
dataform1 me[, type (*) reference]
OnSaveRecord
This event is also used by both dataform1record
and dataform1table
. This event is functionally the same as onrecordsave()
and onsave()
and is called when you save a record. The parameters the event handler requires are:
dataform1 me[, type (*) reference]