Functions > String >


StringIsAlpha

V�rifie si la cha�ne contient uniquement des caract�res alphab�tiques.

StringIsAlpha ( "string" )

Param�tre

string La cha�ne � analyser

Valeur de retour

Succ�s: Retourne 1.
�chec: Retourne 0 si la cha�ne contient des caract�res non-alphab�tiques.

Remarque

Notez que les caract�res 'whitespace' feront que StringIsAlpha retournera 0.

En relation

StringIsAlNum, StringIsASCII, StringIsDigit, StringIsLower, StringIsSpace, StringIsUpper, StringIsXDigit, StringLower, StringUpper

Exemple

#include <MsgBoxConstants.au3>

Local $sString = "Ceci est une phrase avec des whitespace." ; V�rifie si cette cha�ne ne contient que des caract�res alphab�tiques.
If StringIsAlpha($sString) Then
    MsgBox($MB_SYSTEMMODAL, "", "La variable contient uniquement des caract�res alphab�tiques.")
Else
    MsgBox($MB_SYSTEMMODAL, "", "La variable ne contient pas que des caract�res alphab�tiques.")
EndIf