Home > Language Reference > Classes > List
Popup Function
Displays the list in a modal window.
Syntax
Public Function Popup() As Integer
Remarks
The Popup method displays the list in a modal window, waits until the user chooses an element, destroys the window then returns the index of the element selected. In case the user clicks outside the list, no item is selected and the function returns the value -1. This method is used internally to display the list associated with a Popup control type.
In most cases, the Visible property of the list will initially be set to False, so that it is not visible before calling this method. The MiniBrowser sample illustrates how to use this method to implement a list showing the last values input in a field (see cmdList_Click event in frmOpen form).
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |