Click or drag to resize

DbStruct Function

Create an array containing the structure of a database file.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION DbStruct() AS ARRAY

Return Value

Type: ARRAY
The structure of the database file in an array whose length is equal to the number of fields in the database file. Each element of the array is a subarray containing information for one field. The subarrays have the following format:

ConstantAttribute
DBS_NAMEcName
DBS_TYPEcType
DBS_LENnLength
DBS_DECnDecimals
DBS_ALIAScAlias

If there is no database file in use in the work area, DBStruct() will generate a runtime error.

See Also