NUMBER %STRICMP%
Scopo: confrontare il contenuto di
due stringhe
| Sintassi: | |||
| %NUMBER% | %STRICMP% | (%STRING% | s1, |
| %STRING% | s2) | ||
Descrizione: esegue un confronto, insensibile al formato,
carattere per carattere delle due stringhe s1 e s2;
si interrompe al primo carattere che non verifica il confronto.
Valore restituito: valore alfanumerico
s1 è minore di s2 : torna -1;
s1 è uguale a s2 : torna 0;
s1 è maggiore di s2 : torna 1.
Vedere anche: %STRCMP% %MEMCMP% %MEMICMP% %STRPBRK% %STRSPN%, Manipolazione dati / conversione / altro
Esempio:
%STRING%(s1, "Highway Application Server")
%STRING%(s2, "highway application server")
%NUMBER%(ret, 0)
%NUMCPY%(ret ,%STRICMP%(s1, s2))
%IF%(ret)
<--! esegui qualcosa -->
%ENDIF%