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’ )\ \ \ \

../_images/07bc3d321e8f7dd9c0a8640e01947982

Example in FBD:\ \ \ \ :

../_images/7789a4b81e8f7d2ec0a8640e01947982

Example in ST:\ \ \ \

VarSTRING1 := LEFT ('SUSI',3);