Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric or string ??
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
00985094
Message ID:
00985172
Views:
44
What exactly are you doing with the content of this textbox? Say, user puts 11/11/2005. Do you consider this as a date now?

>When the user puts in just digits, I know it's numeric. If he puts in just characters, I know it's a string. But how do I know that when the user puts in '123 piano' that it is character if the type() function returns 'U' and the val() function return 123.00 (sugesting it is numeric). What I do now is I test each character separately, but I want to know if there is no other, easier way.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform