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:
00308071
Views:
47
Hi Ed,

Ok, I've tried it. Very interesting results.

>>
>>Sorry for my prev. message, I haven't read yours carefully. '123 ' it's not the case, because I'm using alltrim, but -/+ does. But I can simply add
>>and !'-'$lcString or !'+'$lcString
>>
>>Right?
>
>No! If I have a memvar for example named MAGIC that hold a numeric value, try:
>
>MAGIC = 42
>MyNumber = "MAGIC"
>? TYPE(MyNumber)
>? LEN(MyNumber)
>
>Oops...
>
>or
>
>AB = 42
>CD = PI()
>MyNumber = "AB/CD"
>
>X = "4"
>MyNumber = "123&X"
>
>MyNumber = "12/99"
>MyNumber = "2^106"
>MyNumber = "123*4"
>>
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