Creates a multidimensional array of a database structure.
DBSTRUCT() --> aStruct
DBSTRUCT() returns an array pointer to database structure
This function returns a multidimensional array. This array has array pointers to other arrays, each of which contains the characteristic of a field in the active work area. The lenght of this array is based in the number of fields in that particular work area. In other words, LEN(DBSTRUCT()) is equal to the value obtained from FCOUNT(). Each subscript position
#include "dbstruct.ch" PROCEDURE Main() LOCAL aStru, x USE tests NEW aStru := dbStruct() FOR x := 1 TO LEN( aStru ) ? aStru[ x ][ DBS_NAME ] NEXT USE RETURN
Library is rdd Header is dbstruct.ch