LD String1
INSERT_INT String2, Position
ST Result_String
Result_String:= INSERT_INT(String1, String2, Position);
Paramètre
|
Type
|
Commentaire
|
---|---|---|
String1
|
Chaîne de caractères d'origine à laquelle est ajoutée une autre chaîne de caractères à partir d'une certaine position.
Exemple : String1 contient ‘DEMARRER LE CYCLE’.
|
|
String2
|
Chaîne de caractères à insérer dans String1.
Exemple : String2 contient « AUTO ».
|
|
Position
|
Rang du caractère après lequel est insérée String2.
Exemple : Position =5
|
Paramètre
|
Type
|
Commentaire
|
---|---|---|
Result_String
|
La chaîne String2 a été insérée dans la chaîne String1 après la position Position pour former Result_String.
Exemple : Pour les valeurs de l'exemple du tableau précédent, Result_String contient « START AUTO CYCLE ».
Remarque : Il est impossible d'effectuer une insertion en début de chaîne avec cette fonction (utilisez la fonction CONCAT_STR).
|