makeUnixPath()

Converts a path to a Unix "/" path.

Synopsis

string makeUnixPath(string path);

Parameters

Parameter Description
path The path that is converted. You can also use the predefined string constants. See chapter Predefined symbolical constants.

Return value

The converted path

Error

Missing or wrong arguments.

Description

Converts a path to a Unix "/" path (this means that the backslashes \ in a file path are replaced via slashes /.). The function does not check whether the path is valid. Note the naming convention for path specifications (see chapters Paths and Naming Convention/ Notation).

Example

Converts the path WINCCOA_PATH into a unix path ("/").

main()
{
  string unix = makeUnixPath(WINCCOA_PATH);
  DebugTN("Unix:", unix);
}

The path is converted as follows:

WCCOAui1:2015.08.20 12:11:32.237["C:/Siemens/Automation/WinCC_OA/3.14/"]

Assignment

Miscellaneous functions

Availability

UI, CTRL