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

../_images/8afdb17e1e8f7a6fc0a8640e01947982

Example in FBD:\ \ \ \

../_images/5394ff291e8f79c1c0a8640e01947982

Example in ST:\ \ \ \

Var1 := DELETE ('SUXYSI',2,3);