F_LTrim
Removes leading spaces from the character string and returns the reduced character string.
FUNCTION F_LTrim: T_MaxString
VAR_INPUT
VAR_INPUT
in : T_MaxString;
END_VAR
in: The string to be converted (Type:T_MaxString).
Example:
PROGRAM MAIN
VAR
sLTrim : STRING;
END_VAR
sLTrim := F_LTrim(' <trim ');(* result: '<trim ' *)
sLTrim := F_LTrim(' <trim');(* result: '<trim' *)
sLTrim := F_LTrim('<trim');(* result: '<trim' *)
sLTrim := F_LTrim('');(* result: '' *)
Requirements
Development environment |
Target platform |
PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.0 |
PC or CX (x86, x64, ARM) |
Tc2_Utilities (System) |