Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if integer or decimal variable
Message
From
17/01/2008 09:22:18
 
 
To
17/01/2008 09:08:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01282531
Message ID:
01282540
Views:
8
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 :)


>One way:
IF INT (MyValue) = MyValue ...
>
>>I get data from a feed, it may come as all integers or with a decimal portion. Is there a snappy way to check if a given numeric variable is an integer or whather it has a decimal portion? I know one way but am asking if there was a quick/simple or single function way?
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