Bt_ATables() Function

 

<< Click to Display Table of Contents >>

Navigation:  Support Functions >

 

Bt_ATables() Function

 

Previous pageReturn to chapter overviewNext page

 

Purpose

 

 

Store DDF dictionary table names and file names in an array

 

 

 

Prototype

 

 

FUNCTION Bt_ATables ( cPath AS STRING )   AS ARRAY PASCAL

 

 

 

Argument(s)

 

 

<cPath>Location of the FILE.DDF file.

 

 

 

 

Return

 

 

ARRAYA 2-dimensional array where each row consists
of 2 elements. The first element of each row contains the tablename
as found in the Data Dictionary. The second element of each
row consist of the fysical filename

 

 

 

Description

 

 

To read the names the function opens the FILE.DDF file in the current directory. If this file does not exist, the resulting array will be empty. In all other cases the array contains at leat the names of 3 data dictionary tables: X$File, X$Field and X$Index. It may also contain the names of the two additional dictionary tables X$FieldExt and X$Comment.

 

 

 

Example(s)

 

 

local aTables                as Array

local i as DWORD

aTables := Bt_Atables()

For i := 1 to aLen(aTables)

         ? aTables[i,1], aTables[i,2]

Next

 

 

 

 

See Also

 

 

BT_FMAP()