Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing for decimals
Message
From
19/03/2012 10:56:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01538660
Message ID:
01538668
Views:
46
>>Hi All,
>>
>>What is the quickest way to test if a numeric table field has a decimal portion?
>
>int(field) <> field
That tells me if the specific number in the field has a decimal portion. I need to know if the field definition itself has been set to have a decimal portion. For field type double TYPE() and VARTYPE() both return "N".
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