Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking integer
Message
 
 
À
27/05/2003 07:26:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00793017
Message ID:
00793029
Vues:
30
>Who can help me?
>How can I check if the variable is integer or numeric.
>For example: if the user entered 2 so it's O.K, if the user entered 2.5 he will get messagebox with some message.
>Thank you for helping
>Chaim
lnVal =2.5
? (lnVal = INT(lnVal))         && Returns .T. if value is a whole number
* If 2.0 is also invalid entry, than
? NOT ("." $ PADL(lnVal, 10))  && Returns .T. if value is a whole number
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform