Applies to

Combo box, edit table, list box.

Description

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

Usage

selecteditem = Get_Property (objectname"SELPOS")

oldselection = Set_Property (objectname"SELPOS"newselecteditem)

Remarks

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.

See Also

ACCESSPOS propertyCARETPOS propertyCELLPOS propertyCLICKPOS propertyNOTIFYPOS propertyTOPPOS property

  • No labels