Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if a character is a digit
Message
From
21/05/2001 10:44:35
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
 
To
21/05/2001 09:33:04
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00509416
Message ID:
00509453
Views:
21
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform