Command CBSET
Function:
Set the current selection for the list box of a combo box.
Syntax:
CBSET dlg_id id index
| dlg_id | Specifies the identifier of the dialog box that contains the combo box. |
| id | Specifies the identifier of the combo box. |
| index | Specifies the index of a string contained in the specified combo box which will be set as the current selection. |
Note:
- Indexes are zero based, that is, the first string in the list box of a combo 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 of the specified combo box is set to have no selection and the edit field of the combo box is cleared.
- Also see command CBGET and CB_TEXT.
|