Previous Topic: Return TypesNext Topic: adjustDate


absPath

The absPath function returns the absolute path that was created with the help of base path and relative path. If the base path is not provided, the base path to the current process is used.

Syntax

sAbsPath = absPath (path2).
sAbsPath = absPath (path1, path2).

Arguments

path1 (String)

Specifies the base path.

path2 (String)

Specifies the relative path.

Return Value

sAbsPath (String)

The absolute path is returned as a String.

Examples

  1. A process "Process" is in a folder "Folder". To get the full path of a "Process1" Object (present in the same folder) inside "Process" Object, use absPath('Process1'). In this case, the base path is automatically taken as the base path of "Process" object.
    sPath = absPath('Process1')
    
  2. Here, the first path is the base path of the object, and then the second is the relative path with respect to the base path. The answer in this case is /folder1/process.
    sPath = absPath("/folder1/folder2","../process");