LD String1
MID_INT Length_Str, Position
ST Result_String
Result_String := MID_INT(String1, Length_Str, Position);
Paramètre
|
Type
|
Commentaire
|
---|---|---|
String1
|
Chaîne d’origine contenant la sous-chaîne à extraire.
Exemple : String1 contient ‘MISE EN STOP’
|
|
Length_Str
|
Longueur de la sous-chaîne à extraire.
Exemple : Length_Str =4
|
|
Position
|
Rang du premier caractère de la sous-chaîne à extraire.
Exemple : Position =9
|
Paramètre
|
Type
|
Commentaire
|
---|---|---|
Result_String
|
Sous-chaîne de String1 à partir du rang Position sur une longueur de Length_Str.
Exemple : pour les valeurs d’exemple du tableau précédent, Result_String contient ‘STOP’.
|