TABLE.ENUM_OPEN Function
Syntax
Table_List as C = Enum_Open([C format])
Arguments
- formatCharacter
Default = "N"+crlf(). An expression defining how the table information should be formatted. Expression can include:
- N
Table name.
- F
Table path and filename.
- S
Handle.
Returns
- Table_ListCharacter
Returns the table information using the specified format.
Description
Enumerate all open tables.
Discussion
The TABLE.ENUM_OPEN() method returns a character string containing information about open tables.
The following script returns a list of open tables.
? table.enum_open("F"+crlf())
= C:\PROGRAM FILES\A5V6\A_CASE.DBF
C:\PROGRAM FILES\A5V6\A_GLOSS.DBF
C:\PROGRAM FILES\A5V6\NULL.DBF
C:\PROGRAM FILES\A5V6\NULL.DBF
C:\DATABASES\ALPHASPORTS\CUSTOMER.DBFThe following script closes one of the tables in this list.
dim tbl as P
tbl = table.get("C:\DATABASES\ALPHASPORTS\CUSTOMER.DBF")
tbl.close()See Also