Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for decimals
Message
 
 
À
19/03/2012 10:56:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01538660
Message ID:
01538669
Vues:
91
This message has been marked as the solution to the initial question of the thread.
>>>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.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform