Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if integer or decimal variable
Message
From
17/01/2008 09:33:37
 
 
To
17/01/2008 09:30:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01282531
Message ID:
01282553
Views:
6
Thanks Sylvain. Got a similar type solution testing for the ".". Thanks.

>OK then, how about:
IF LEN (TRANSFORM (INT (MyValue))) = LEN (TRANSFORM (MyValue)) ...
>
>>Except the particular value I test while looping through the data may be decimal based but the decimal portion happens to be .0. In other words, and perhaps this is a language problem with you beng in Qatar and all, I need to know whether the variable being tested has a decimal point in it or not :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform