SELPOS property

Combo box, edit table, list box.

Returns or sets the position (starting with 1) of the selected position in an edit table or list box.

selecteditem = Get_Property(objectname, "SELPOS")

oldselection = Set_Property(objectname, "SELPOS", newselecteditem)

Values passed in Set_Property are:

ValueDescription
selecteditemEdit table: Column:@FM:Row.
Combo and list boxes: ordinal position of row(s).

Use -1 to indicate the last item in the list.

Get_Property returns column:@FM:row for active cell in an edit table, or selected item(s) for combo and list boxes. A multiple-selection list box returns an @FM-delimited list.

Set_Property sets the active cell for an edit table, or selects the row(s) for combo and list boxes. For a multiple-selection list box, the current selection list is toggled with the list that is passed.

Note: If an edit table is protected the column position returned will be 1. Use NOTIFYPOS to determine which cell was selected.

  • guides/programming/programmers_reference_manual/selpos.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1