User Tools

Site Tools


path_return_current_directory_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== PATH (return current directory) ====== Previous pageReturn to chapter overviewNext page

PATH( )

blk2blue.jpg

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

path_return_current_directory_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1