INSTR_LAST(S1,S2)

RETOURNE LA POSITION DANS S1 DE LA DERNIÈRE OCCURRENCE DE S2, SI LA CHAINE S1 CONTIENT LA CHAINE S2



ACTION

La fonction INSTR_LAST(S1,S2) retourne la position dans S1 de la dernière occurrence de S2, dans le cas où la chaîne S1 contient la chaîne S2,et la valeur 0 sinon.


SYNTAXE : Resultat=INSTR_LAST(S1,S2)


UTILISATION


ERREUR


EXEMPLE

dim a$,b$

a$="ABC DEF ABC"

b$="ABC"

print instr_last(a$,b$)

print 9


EN RAPPORT

INSTR()

INSTR_POS()

INSTR_RIGHT()


Content created by Jack. Updated March 07, 2025