DbServer.DBStruct Property | |
An array containing the structure of this data server, whose length (that is, number of elements) is equal to the number of fields in the server.
Namespace:
VO
Assembly:
VORDDClasses (in VORDDClasses.dll) Version: 2.19
Syntax VIRTUAL PROPERTY DBStruct AS USUAL GET
public override Usual DBStruct { get; }
Request Example
View SourceProperty Value
Type:
UsualAn array containing the structure of this data server, whose length (that is, number of elements) is equal to the number of fields in the server.
Remarks
An array containing the structure of this data server, whose length (that is, number of elements) is equal to the number of fields in the server.
Each sub-array is comprised of five elements, which contain the following information, in this order:
Constant | Description |
---|
DBS_NAME | Name (string) |
DBS_TYPE | Type (string) |
DBS_LEN | Length (number) |
DBS_DEC | Decimals (number) |
DBS_ALIAS | Alias (string) |
Examples
This example opens a database file, then creates an array containing the database structure using DBServer:DBStruct within an aliased expression. The field names are then listed using AEval():
1CLASS Sales INHERIT DBServer
2...
3FUNCTION StructDemo()
4LOCAL aStruct AS ARRAY, oDBSales AS DBServer
5oDBSales := Sales{}
6aStruct := oDBSales:DBStruct
7AEval(aStruct, {|aField|QOut(aField[DBS_NAME])})
See Also