ISaGRAF. Version 3.4

         

INSERT


Àðãóìåíòû:

IN                         MSG              íà÷àëüíàÿ ñòðîêà

Str                       MSG              ñòðîêà êîòîðóþ íóæíî âñòàâèòü

Pos                     INT                 ïîçèöèÿ âñòàâêè

                                                  âñòàâêà äåëàåòñÿ ïåðåä ïîçèöèåé

                                                  (ïåðâàÿ ïîçèöèÿ - 1)

Q                          MSG              èçìåíåííàÿ ñòðîêà

                                                  ïóñòàÿ ñòðîêà åñëè Pos < 0

                                                  ñîåäèíåíèå ñòðîê åñëè Pos > äëèíà IN

Îïèñàíèå:

Âñòàâëÿåò ïîäñòðîêó â ñòðîêó íà÷èíàÿ ñ äàííîé ïîçèöèè.

(*FBD ïðèìåð áëîêà “INSERT”*)

(* ST Ýêâèâàëåíò: *)

MyName := INSERT ('Mr JONES', 'Frank ', 4);

(* MyName - ýòî 'Mr Frank JONES' *)

(* IL Ýêâèâàëåíò: *)

LD                     'Mr JONES'

INSERT              'Frank ',4

ST                     MyName



Ñîäåðæàíèå  Íàçàä  Âïåðåä