Command Line

Command LBGET

Function:

Get the index of the currently selected string, if any, in a list box. The index is stored in an environment variable called LBGET.
Syntax:
LBGET dlg_id id
dlg_idSpecifies the identifier of the dialog box that contains the list box.
idSpecifies the identifier of the list box.
Note:
  • The index returned is 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.
  • When the list box does not contain a currently selected string then a value of -1 is returned.
  • Also see command LBSET and LBTEXT.

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