GETSELECTED

Top  Previous  Next

Syntax

INT = GETSELECTED(win as WINDOW,id as INT)

Description

Returns the zero-based index of the currently selected item in the list box of a combo or single selection list box.

Parameters

win - Window or dialog containing the control.

id - Identifier of the combo box or list box.

Return value

The zero based index of the currently selected item.

Remarks

See Also: SETSELECTED

Example usage

pos = GETSELECTED(mydlg, 5)