Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsNumeric - VFP analogue?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00307922
Message ID:
00308025
Views:
40
Hi Ed,
>>
>>Your origin was that you said? :) I'm not sure, that I understand the meanning. I'll try at home with my dictionary :)
>>

Yes, my function is not enough. Right now I appended with 3 or conditions. Meanwhile George's IsNumeric function gives me desirable result:

myNumber='12345'
? IsNumeric(myNumber) .t.
? TYPE(myNumber) 'N'

myNumber='123-45'
? IsNumeric(myNumber) .f.
?TYPE(myNumber)'N'

Now I'm trying to compare the difference in speed for long numbers between TYPE() function and IsNumeric function.

>
>Try the following strings:
>
>"-1234"
>"34-12"
>"3.141"
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