Cicode Programming Reference > Cicode Function Categories > String Functions Introduction > PathToStr

PathToStr

Converts a CitectSCADA path into a string. The path string can contain one of the standard CitectSCADA path operators, BIN, DATA, RUN, or a user-configured path. If the string does not contain a CitectSCADA path, it is unchanged.

Syntax

PathToStr(sPath)

sPath:

The CitectSCADA path to convert.

Return Value

A string containing the converted path.

Example

Variable=PathToStr("[data]:test.txt");
! Sets Variable to "c:\MyApplication\data\test.txt".
! assuming that DATA=C:\MyApplication\DATA

See Also

String Functions