FILENAME

Contents


filename contains the paths of access to all open tables.

 

Class, Type, and Dimension

[S]filename(255) (101) Char

 

Examples

   # List of open tables and their abbreviations
    For I = 1 To [S]adxmto
       Infbox [S]filename(I)-[S]fileabre(I)
    Next I

 

Description and Comments

filename is an Adonix system variable of the character string type that contains the name of the tables opened via the File (or Local File) or Trbegin instruction. The variable is sized to 101, and filename(0) is initialized with the empty string.

You may open a maximum number of tables equal to the value used by the adxmto system variable, which cannot exceed 100.

 

Remarks

To say that a table is open does not necessarily mean that it is accessible. This means that it was opened by Adonix at the time of a File or Local File instruction and it is still in the memory. It could be "closed logically" by a File command, since Adonix reserves the selection as per its requirements to delete a saved OBJect when it is not used. To access a table loaded in the memory but "closed logically," you will have to declare it again via File or Local File.

The order in which the tables are placed in the filename variable is not significant.

 

Associated Errors

Error

Description

EREADONLY (62)

Attempt to modify the variable

 

Associated Keywords

FILE - TRBEGIN - FILEABRE - CLOSE - FILPATH - ADXMTO


CONTENTS


Copyright © Sage 1999 - 2007