You are here: Help Topics > Customization > Calculation > PRGDIR Function

PRGDIR Function

The PRGDIR function retrieves the path to a specified program directory and inserts it in an alphanumeric cell.

Syntax

PRGDIR()

Example 1

PRGDIR()

Returns the program directory to an alphanumeric cell. For example, if the program is located in the default installation folder, C:\PROGRAM FILES\Caseware\ will appear in an alphanumeric cell.

Example 2

'PRGDIR()+"library\filename.cvw"'

Note:

  • Insert single quotes around the function as a whole, and double quotes around "library\filename.cvw"'.

Places a Knowledge Library document in the library folder in the program directory. This eliminates the need to hardcode an absolute path that would require modification if the destination document is moved to another system where Working Papers is installed in a different location.

Related Topics