NAME (return file name)

Top  Previous  Next

 

NAME(label)

NAME

Returns name of a file.

label

The label of a FILE declaration.

The NAME procedure returns a string containing the operating system device name for the structure identified by the label. For FILE structures, if the file is OPEN, the complete DOS file specification (drive, path, name, and extension) is returned. If the FILE is closed, the contents of the NAME attribute on the FILE are returned. If there is no NAME attribute, the FILE label is returned.

Return Data Type:

STRING

Example:

OpenFile = NAME(Customer)  Save the name of the open file

 

See Also:

 

EXISTS