PreviousActiveX Controls Guide (v10) Next

VAList

Chapter contents

Description

The VAList control allows a user to select an item from a list.

Remarks

The data source for the VAList control is determined by the value of the VAccessName property.

The list box control can operate in two distinct modes, determined by the setting of the VARecordList property.

If the VARecordList property is False, the list box acts as a field-bound data control. Assign the field data source for the list box by setting the VAFieldName property to the name of one of the fields in the data source. Use the AddItem method to populate a field-bound list box with a list of valid arguments for the field.

If the VARecordList property is True, the list box acts as a multi-column record list for the associated data source. Set the value of the VAFieldName property to the list of fields to be displayed in the list, separated by semicolons. (If you leave the field blank, it will default to all fields.) You may also set formats for each field by specifying a list of format strings, separated by semicolons, in the VAFormat property. Control the horizontal spacing of the columns within the list box by setting the ColumnWidth property. Column widths are measured in pixels.

Custom Properties and Methods

Custom properties and methods for this control are listed in the following tables:

Table 4-7 VAList Custom Properties
ColumnWidth
VAccessName
VADecimal
VAOffset
List
VADataType
VAFieldName
VARecordList
VAAutoScroll
VADebugMode
VAFormat
VASize

Table 4-8 VAList Custom Methods
AboutBox
Clear
RemoveItem
 
AddItem
Refresh
   


Chapter contents
Book contents

Prev topic: VAHScroll and VAVScroll
Next topic: VAOption