LEFT (FUN)ΒΆ
FUNCTION LEFT : STRING(255)
Returns a specific number of characters of a string, starting from left
LEFT (STR, SIZE)
means: Return the first SIZE
characters from the left in string STR
(* Example declaration *)
VarSTRING1 : STRING ;
(* Example in ST , result is 'SUS' *)
VarSTRING1 := LEFT ('SUSI',3);
- InOut:
Scope
Name
Type
Comment
Return
LEFT
STRING(255)
Resulting string
Input
STR
STRING(255)
String to be analyzed
SIZE
INT
Number of characters