ListBox FUNCTION Action Displays a window containing a list box, a scroll bar, an OK button, and a Cancel button. Syntax variablename% = ListBox (text$( ), maxRec%) Remarks variablename% ------------- Any BASIC variable name, including the name of a record variable or record element. text$( ) -------- A string array that contains the text items to be displayed in the list box. maxRec% ------- An integer that defines the maximum number of entries in the list box. With the ListBox procedure, you can use the mouse or keyboard to select any single item from the text in a list box. To accept the current choice, select OK. Use Cancel to reject all choices and close the list box. The ListBox procedure returns an integer that is the number of the item selected from the text in the list box when OK is selected, or 0 if Cancel is selected. Use ListBox when you have a list of things to choose from that may be longer than the available screen space. See Also. Alert, Dialog Example See the DemoListBox procedure in the code example UIDEMO.BAS for a specific usage.