Truncates all trailing spaces from the specified value and returns the result.
FUNCTION F_RTrim: T_MaxString
VAR_INPUT
VAR_INPUT in : T_MaxString; END_VAR
in: The string to be converted (Type: T_MaxString).
Example:
PROGRAM MAIN VAR sRTrim : STRING; sLRTrim : STRING; END_VAR sRTrim := F_RTrim(' trim> ');(* result: ' trim>' *) sRTrim := F_RTrim('trim> ');(* result: 'trim>' *) sRTrim := F_RTrim('trim>');(* result: 'trim>' *) sRTrim := F_RTrim('');(* result: '' *) sLRTrim := F_RTrim( F_LTrim( ' <trim> '));(* result: '<trim>' *)
Diff:
Ticket moved from /prj/tcunit4codesys/tickets/8/
Ticket moved from /prj/csunit/tickets/11/