Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing for decimals
Message
From
19/03/2012 11:05:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01538660
Message ID:
01538670
Views:
54
>>>>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".
>
>What does AFIELDS return?
>
>BTW, I think I answered what you asked. You needed to be more precise in the question.

Thanks.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform