Vérifie si une chaîne est convertible en integer.
StringIsInt ( "string" )
string | La chaîne à analyser. |
Succès: | Retourne 1. |
Échec: | Retourne 0 si la chaîne ne contient pas un nombre entier. |
IsInt, StringIsDigit, StringIsFloat
#include <MsgBoxConstants.au3> MsgBox($MB_SYSTEMMODAL, "", "Est-ce que la chaîne '+42' est un nombre entier: " & StringIsInt("+42") & @CRLF & _ ; Retourne 1, car le symbole + est, au début de la chaîne. "Est-ce que la chaîne '-00' est un nombre entier: " & StringIsInt("-00") & @CRLF & _ ; Retourne 1, car - est au début de la chaîne. "Est-ce que la chaîne '1.0' est un nombre entier: " & StringIsInt("1.0") & @CRLF & _ ;Retourne 0, en raison de la virgule. "Est-ce que le nombre 1.0 est un nombre entier: " & StringIsInt(1.0) & @CRLF & _ ; Retourne 1, en raison du nombre dans la chaîne convertie. "Est-ce que la chaîne '1+2' est un nombre entier: " & StringIsInt("1+2") & @CRLF) ;Retourne 0, car le symbole plus (+) n'est pas au début de la chaîne.