ISaGRAF. Version 3.4


DELETE


:

IN MSG

NbC INT ,

Pos INT

( - 1)

Q MSG

Pos < 1

Pos > IN

NbC <= 0

:

.

(*FBD DELETE*)

(* ST : *)

complete_string := 'ABCD' + 'EFGH'; (* - 'ABCDEFGH' *)

sub_string := DELETE (complete_string, 4, 3); (* sub_string is 'ABGH' *)

(* IL : *)

LD 'ABCD'

ADD 'EFGH'

ST complete_string

DELETE 4,3

ST sub_string