ISaGRAF. Version 3.4


FIND


:

IN MSG

Pat MSG

Pos INT =0 Pos

= Pat ( - 1)

:

. .

(*FBD FIND*)

(* ST : *)

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

found := FIND (complete_string, 'CDEF'); (* 3 *)

(* IL : *)

LD 'ABCD'

ADD 'EFGH'

ST complete_string

FIND 'CDEF'

ST found