DF_OPEN_FILE_COUNT
See Also: Get_Attribute, Set_Attribute
Returns the number of currently open tables.
Level
Global
Type
Integer, temporary
Access
Read Only
Values
Positive integer
Remarks
DF_OPEN_FILE_COUNT returns the number of tables that are currently open. This attribute will not return the number of tables open in another application, only the current one. This count does not include any pending structure handles (Structure_Start) that have not been ended with a Structure_End or Structure_Abort.
Function NumberOfOpenTables Returns Integer
Integer iOpen
Get_Attribute DF_OPEN_FILE_COUNT To iOpen
Function_Return iOpen
End_Function // NumberOfOpenTables
The sample function above returns the number of tables currently open.