Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for decimals
Message
De
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:
01538668
Vues:
47
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform