Equinox Online Help - Language Reference - A to Z

Home

Trigger

Applies to
SyntaxTrigger [UserOption] OptionNameExpression
Trigger [UserOption] OptionNumberExpression
Action[Statement] Triggers a user option from the method language.
ScopeOnly usable in form methods.
Notes

User Options are methods which are normally executed from menu items in forms or from toolbar icons. The Trigger command executes the method as a sort of subroutine.The methods may be edited via UserOptions in the Objects section of the method event selector. OptionNumberExpression is a numeric expression which evaluates to the option number. OptionNameExpression is a string expression which corresponds to the name given in the User Option Names dialog on the Edit menu of the forms editor.

The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.

CategoryMenus and mouse
See Also EnableCommand, MouseObject, MouseObjectName, MousePosition
Example

The following method fragment launches User Option number 20 and then the option called “Verify Entry”.

Trigger UserOption 20
Trigger "Verify Entry"