F_GetBasePath

Extracts the base path from the provided path. Use the path separator specified in Tc3_PlasticBaseAppStaticParams.
Example:
F_GetBasePath('C:\Test\Directory\File.txt'); // returns 'C:\Test\Directory'
F_GetBasePath('C:\Test\Directory'); // returns 'C:\Test'Syntax:
FUNCTION F_GetBasePath : T_MaxString
Inputs
Name | Type | Description |
|---|---|---|
sPath | Absolute file path |
Outputs
Name | Type | Description |
|---|---|---|
F_GetBasePath | Resulting base path |
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT 4026 >= v3.1.4026.19 | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.16.0.0) |