settrigger
settrigger
VALUE

The settrigger statement changes the value returned by the info(“trigger”) function.

Parameters

This statement has one parameter:

value – is the text to be placed into the info(“trigger”) buffer.

Description

The settrigger statement changes the value returned by the info(“trigger”) function. Usually this value is set automatically by Panorama when it triggers a procedure. The settrigger statement allows a procedure to simulate this action.

The example below triggers the print section of the .CustomMenu procedure. As far as the .CustomMenu procedure is concerned, it thinks that the user selected Print from the File menu.

    settrigger "Menu.File.Print"
    call .CustomMenu

See Also

- Implicitly Triggered Procedures -- Procedures that are triggered automatically when the user performs some normal Panorama action are said to be "implicitly triggered."
- info("dialogtrigger") -- returns the name of the last button pressed in an alert or dialog.
- info("texteditortrigger") -- returns the reason why a Text Editor object triggered a procedure.
- info("trigger") -- returns information about how the current procedure was triggered.
- setdialogtrigger -- changes the value returned by the info("dialogtrigger") function.

History

Version | Status | Notes
10.0 | Updated | Carried over from previous versions of Panorama, however, there is no longer a 40 character limit.