Creates a Listbox script object, which creates an intrinsic HTML list box that can be bound to data.
Remarks
You can set the properties of the Listbox control at design time using the Properties window and the Listbox Properties dialog box.
Set the ControlStyle property to create a standard list box or a drop-down list box.
You can bind the Listbox control to one recordset and populate the list from another recordset by doing a lookup on the Lookup tab of the Listbox Properties dialog box.
If you want to create a static list instead of one that is data-bound, select the Static list option on the Lookup tab.
Note The scripting platform specifies where an object's script is run - either on the client (Microsoft® Internet Explorer 4.0 DHTML) or on the server (ASP). Thus, the scripting platform determines whether the object is available under Client Objects & Events or Server Objects & Events in the Script Outline window.
For the Listbox control, the Scripting Platform property is specified on the General tab of the Listbox Properties dialog box. For more information, see the DTCScriptingPlatform property. For detailed information about choosing a scripting platform, see Writing Script for Script Objects.
Scripting Notes
Call the hide, show, and isVisible methods to control how the list box is displayed.
To change the items of the Listbox object, call the addItem, removeItem, clear, and getCount methods.
To manipulate the current item, call the getValue, setValue, getText, and setText methods.
Call the selectByValue or selectByText methods to select an item in the list.
For more information about the run-time object, see Listbox Script Object. For information on scripting and objects, see Scripting with Design-Time Controls and Script Objects.