Command Line

Command CBSET

Function:

Set the current selection for the list box of a combo box.
Syntax:
CBSET dlg_id id index
dlg_idSpecifies the identifier of the dialog box that contains the combo box.
idSpecifies the identifier of the combo box.
indexSpecifies 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.

Copyright © 1995-2005 Lucien Cinc, All Rights Reserved
WinOne is an Australian registered trademark of Lucien Cinc