Listbox Script Object

See Also      Tasks      Properties      Methods      Events

Creates an HTML list box on the client browser.

Remarks

The Listbox script object can be bound to data.

The Listbox script object is implemented on the client as an HTML <SELECT> tag. The <SELECT> tag displays a list box in the client browser. The list box displays a list of items from which the user can make a unique selection.

If the number of items exceeds the number that can be displayed, a scroll bar is automatically added to the list box.

To change the items of the Listbox object, call the addItem, removeItem, clear, and getCount methods.

Call the hide, show, and isVisible methods to control how the list box is displayed.

To manipulate the current item, call the getValue, setValue, getText, and setText methods.

Call selectByValue or selectByText to select an item in the list.

At design time, you can use the Listbox design-time control to create a Listbox object. The Listbox control has custom property pages that make it easier to control the behavior of the Listbox object.

For information on scripting and objects, see Scripting with Design-Time Controls and Script Objects.