Get the index of the currently selected string, if any, in the list box of a combo box. The index is stored in an environment variable called CBGET.
CBGET dlg_id id
dlg_id Specifies the identifier of the dialog box that contains the combo box. id Specifies the identifier of the combo box.
The index returned is 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.
When the list box of a combo box does not contain a currently selected string then a value of -1 is returned.