ISSELECTED

Top  Previous  Next

Syntax

INT = ISSELECTED(win as WINDOW,id as INT,pos as UINT)

Description

Test for selection in a multi-selection list or combo box.

Parameters

win - Window or dialog containing the control.

id - Identifier of the combo box or list box control

pos - Zero based position for the test.

Return value

Returns 1 if the string at pos is currently selected or 0 if it is not selected.

Remarks

Works only on combo and list boxes that have the multi-selection style.

See Also: GETSELECTED, GETSTRINGCOUNT

Example usage

FOR x = 0 TO GETSTRINGCOUNT(win, 7)-1
  IF ISSELECTED(win,7,x) THEN selected[x] = 1 ELSE selected[x] = 0
NEXT x