RAD function: option

A RAD function that returns the number of the last interrupt key. For example, 0 = Enter, 1 = first option key, 2 = second option key.

Function

option

Format

option()

Factors

  • The Enter key returns a value of zero (0).
  • Use caution when option() is a criteria for a decision or process panel that can be accessed from several paths. To avoid conflicts, set a variable to option() when the first panel is accessed.
  • Clicking a button returns the number defined in the Button ID property.
  • Clicking an item in the More menu returns the GUI option number associated with this option in the displayoption table.

Example

option() returns 10.