DELETE¶
Provided by Standard Library.
STR : STRING; string from which a part should be deleted
Inputs:
STR : STRING; string from which a part should be deleted
LEN : INT; length of the partial string to be deleted, number of characters, value must be greater or equal “0”.
POS : INT; position in STR after which the deletion of LEN characters should start, counted from left, starting with “1”; value must be greater “0”
Return value: STRING, string remaining after deletion
DELETE (STR, L, POS) means: Delete L characters from STR, beginning with the character in the POS position.
Example in IL: ( Result is ‘SUSI’ )\ \ \ \
Example in FBD:\ \ \ \
Example in ST:\ \ \ \
Var1 := DELETE ('SUXYSI',2,3);