INSERT$(S1,S2,P)
RETOURNE UNE CHAINE CONSTITUÉE DE S2 INSÉRÉE DANS S1 EN POSITION P
ACTION
La fonction INSERT$(S1,S2,P) retourne une chaîne de caractères constituée de la chaîne S2 insérée dans la chaîne S1 en position P.
P doit être supérieur ou égal à 1.
SYNTAXE : Resultat$=INSERT$(S1,S2,P)
UTILISATION
ERREUR
EXEMPLE
dim a$,b$
a$="bonjouramis"
b$=" les "
print insert$(a$,b$,8)
print "boujour les amis"
EN RAPPORT
INSTR()
LEFT$()
LEN()
LOWER$()
LTRIM$()
MID$()
RIGHT$()
RTRIM$()
STR$()
STRING$()
TRIM$()
UPPER$()
Content created by Jack. Updated March 07, 2025