LEFT¶
Provided by Standard Library.
Function of type STRING. Returns the left, initial string for a given string.
Inputs: :
STR : STRING; string to be analyzed.
SIZE : INT;length of left initial string (number of characters), value must be greater or equal “0”.
Return value: STRING; initial string
LEFT (STR, SIZE) means: Take the first SIZE signs from the left in string STR.
Example in IL: ( Result is ‘SUS’ )\ \ \ \
Example in FBD:\ \ \ \ :
Example in ST:\ \ \ \
VarSTRING1 := LEFT ('SUSI',3);