Functions > VarConv >


IsString

Vérifie si une variable est de type chaîne.

IsString ( variable )

Paramètre

variable La variable/expression à vérifier.

Valeur de retour

Succès: Retourne 1.
Échec: Retourne 0 si l'expression n'est pas de type chaîne.

Remarque

Consultez Types de Données du Langage pour une description détaillée.

En relation

IsArray, IsBinary, IsBool, IsFloat, IsHWnd, IsInt, IsNumber, IsPtr, String, VarGetType

Exemple

#include <MsgBoxConstants.au3>

Local $sString = "Ceci est une chaîne"
If IsString($sString) Then
    MsgBox($MB_SYSTEMMODAL, "", "La variable est une chaîne")
Else
    MsgBox($MB_SYSTEMMODAL, "", "La variable n'est pas une chaîne")
EndIf