GETSELECTION

Retrieves the current selection of a menu widget.

Syntax

GETSELECTION(widget; type)

  • widget - the menu widget from which the selection should be returned - Value type: widget reference

  • type - defines if the position or the value of the selected entry should be returned - Value type: constant (optional, default value: position) Possible values are

    • position - the position of the currently selected entry is returned

    • value - the value of the currently selected entry is returned

    • valuepath - the value and all values of its parents are returned, as a row range of values.

Examples

The left cell is filled with the selected position of menu1:

Here the left cell is filled with the selected value of menu4: