F_JoinFilename

Combines a filename or a relative path with an absolute base path and a file extension.
Example:
F_JoinFilename('File.csv', 'C:\Test', '.txt'); // returns 'C:\Test\File.txt
F_JoinFilename('Test\File', '', '.csv'); // returns 'C:\Machine\Data\Test\File.csv'Syntax:
FUNCTION F_GetBasePath : T_MaxString
Inputs
Name | Type | Description |
|---|---|---|
sFile | File name or relative path. | |
sBase | Absolute base path. Uses F_BaseDirectory() if not assigned or if it is equal to | |
sExtension | Intended file extension (e.g., 'txt'). Not taken into account unless assigned. |
Outputs
Name | Type | Description |
|---|---|---|
F_JoinFilename | Resulting overall 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) |