PathToStr
- Last UpdatedJul 18, 2023
- 1 minute read
Converts a Plant SCADA path into a string. The path string can contain one of the standard Plant SCADA path operators, BIN, DATA, RUN, USER or a user-configured path. If the string does not contain a Plant SCADA path, it is unchanged.
Syntax
PathToStr(sPath)
sPath:
The Plant SCADA 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