Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if a character is a digit
Message
De
21/05/2001 10:44:35
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
 
 
À
21/05/2001 09:33:04
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00509416
Message ID:
00509453
Vues:
22
>Assuming I have a string which contains a character. What ASP function should I use to determine if that character is a digit?

Michel,

You can use the ASC() function to test if the ASCII code for the character is in the range of 48 to 57 (decimal) or 30 to39 (hex) which corresponds to numeric characters 0 thru 9.
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform