Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if char field in a table is a number
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01408688
Message ID:
01409001
Views:
70
>Hi James,
>
>it would fail if using SET("POINT") as the decimal point constitutes a valid number, because TYPE() only works with ".". TYPE() would also include the exponential syntax making "1.2e345" a valid number. Finally, the function would return number for many expressions such as "1+1", "_Screen.Height", "LEN(goApp.Login.Password)", and so forth.
>
>It's not really an issue with TYPE(), rather with the definition of number in the application context. If TYPE() returns "N", EVALUTE() would return a number. It doesn't mean, though, that the parameter contains a number literal.

Good point.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform