name_return_file_name_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== NAME (return file name) ====== | |
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:
name_return_file_name_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1