Occurs when focus passes from a control to anywhere else.
bforward = LOSTFOCUS (ctrlentID, ctrlclassID, flag, focusID)
LOSTFOCUS accepts arguments for the following parameters.
Parameter | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ctrlentID | Has the format WindowName.ControlName, where WindowName is the identifier of the window that contains the affected control, and ControlName is the identifier of the control. Notice that a period separates the two values. | ||||||||||||||||||
ctrlclassID | The type of control that recognizes the event. Valid entries are:
| ||||||||||||||||||
flag | flag can have one of three values:
| ||||||||||||||||||
focusID | The next control in the active tab order. This parameter will contain the name of the control that receives focus after the LOSTFOCUS event. |
True or false. If false, the program execution returns to the calling procedure. If true, the event processing goes to the next level.
FOCUS property, GOTFOCUS event, INACTIVATED event
A common mistake is returning 0 from LOSTFOCUS, not allowing the system event handler to process changes to data in bound controls. Always return 1 or use Forward_Event from LOSTFOCUS unless you want to suppress the system event handler.