GET_PATH ​
Syntax ​
leo-grammar
CC "Application" GET_PATH [ strValue ] [ path-only [ append-delimiter ] ]
#--> RESULT path:strValue
Parameters ​
<main-parameter>
(strValue) - when specified, it contains a file and GET_PATH returns the absolute path to this file. When no filename is specified, the installation directory of ADOxx is returned.path-only
(modifier) - when specified, the filename is omitted.append-delimiter
(modifier) - when specified, the '' is appended at the end of the path.
Returns ​
path
(strValue) - contains the absolute path to the file.
Details ​
If GET_PATH is called on a root path (when giving no filename having e.g. the ADOxx directory being mapped to a network drive),
the path will have an appended \ character anyway.
See Also ​
Examples ​
asc
CC "Application" debug GET_PATH
CC "Application" debug GET_PATH "Aadma.exe"
CC "Application" debug GET_PATH "Aadma.exe" path-only
CC "Application" debug GET_PATH "Aadma.exe" path-only append-delimiter
The third statement produces the following message box
Versions and Changes ​
Available since ADOxx 1.3