Purpose
Returns the ID of the last dialog control chosen by the user. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
TriggerControl()
Return Value
Integer
Description
Within a Dialog statement's handler procedure, the TriggerControl() function returns the control ID of the last control which the user operated.
Each control in a dialog box can have its own dedicated handler procedure; alternately, one procedure can act as the handler for two or more controls. A procedure which handles multiple controls can use the TriggerControl() function to detect which control the user clicked.
Error Conditions
ERR_INVALID_TRIG_CONTROL (843) error is generated if the TriggerControl() function is called when no dialog box is active.
See Also:
Alter Control statement, Dialog statement, Dialog Preserve statement, Dialog Remove statement, ReadControlValue() function