Command Prompt for Windows

Command LBTEXT


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


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


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.

Also see command LBFIND, LBGET and LBSET.