DELETE (FUN)

 

FUNCTION DELETE : STRING(255)

Deletes a number of characters from a string

DELETE (STR, L, POS) means: Delete L characters from STR, begin­ning with the character in the POS position.

(* Example declaration *)
VarSTRING1 : STRING ;

(* Example in ST , result is 'SUSI' *)
VarSTRING1 := DELETE ('SUXYSI',2,3);

InOut:

Scope

Name

Type

Comment

Return

DELETE

STRING(255)

String remaining after deletion

Input

STR

STRING(255)

String to be modfied

LEN

INT

Length of the partial string to be deleted, number of characters

POS

INT

Position in STR after which the deletion starts. Counted from left, starting with 1