|Navigation: Language Reference > 13 - Built-in Functions >====== PATH (return current directory) ======|
PATH returns a string containing the current drive and directory. This is equivalent to the SHORTPATH procedure.
PATH can be used in expressions evaluated by the EVALUATE statements in runtime applications and in the templates.
|Return Data Type:||STRING|
IF PATH() = 'C:\' !If in the root
MESSAGE('You are in the Root Directory') !display message
ELSIF PATH() = 'C:\INVOICE' !In program directory
MESSAGE('You are in the INVOICE Directory') !display message