Command Prompt for Windows




Command LBSET

Function:

Set the current selection for a list box.

Syntax:

LBSET dlg_id id index
dlg_idSpecifies the identifier of the dialog box that contains the list box.
idSpecifies the identifier of the list box.
indexSpecifies the index of a string contained in the specified list box which will be set as the current selection.

Note:

Indexes are zero based, that is, the first string in the list box is at index 0, the second string is at index 1 and so on.

If parameter index is specified with a value of -1 then the list box is set to have no selection.

Also see command LBGET and LB_TEXT.