Applies to

List box, edit table.

Description

Indicates the position of the caret in the control. The caret indicates the item that has the focus in a multiple-selection list box or edit table.

Usage

selecteditem = Get_Property (objectname, "CARETPOS")

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

Remarks

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

Set_Property sets the active cell for an edit table, or selects the row(s) for combo and list boxes.

Values passed in Set_Property are:

ValueDescription
newselecteditemEdit table: Column:@FM:Row.

Combo and list boxes: ordinal position of row(s).

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

See also

ACCESSPOS propertyCELLPOS propertyCLICKPOS propertyNOTIFYPOS propertySELPOS property

  • No labels