Command Prompt for Windows

Command CBTEXT


Get the string at the specified index from the list box of a combo box. The string is stored in an environment variable called CBTEXT.


CBTEXT 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 to retrieve.


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.

Also see command CBFIND, CBGET and CBSET.