VAFormat
Applies to
VACombo, VAList, VAText
Description
This property permits you to specify format strings for the field values displayed by the control.
Remarks
See the Visual Basic Language Reference documentation of the Format function for a list of valid format strings and their meanings.
For VAList control in multi-column record list mode (VARecordList property is True), the VAFormat property can contain a list of formats (one for each field specified in the VAFieldName property of the control) separated by semicolons.
The VAFormat property exists to arrange your data using format strings similar to those used in Visual Basic. The common Visual Basic format strings (see Table 32) are predefined and there is also support for custom formats for dates and numbers. See the Visual Basic Language Reference for information on how these work.
 
Custom numeric formats can be used similar to the formats provided by Visual Basic, but not all options are supported.
When using day-of-the-week displays, rounding errors can result in the wrong day being shown for times close to midnight.
Example
VAccess1.TableName = "Billing"
VAText1.FieldName = "Amount_Due"
VAText1.VAFormat = "Currency"
VAText2.FieldName = "Log"
VAText2.VAFormat = "mmm ddd yyyy"