PATH (return current directory)

Top  Previous  Next

 

PATH( )

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

Example:

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

END

See Also:

How to Get Active Folder Information

SETPATH

SHORTPATH

LONGPATH

DIRECTORY