Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding the decimal
Message
De
07/10/1998 09:40:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00144345
Message ID:
00144553
Vues:
19
>Hello All,
>We're trying to figure out if there is a decimal in a numeric field.
>After checking with type() and fsize() (with set comp off to find field size), How do we find how many decimal places there are. We are trying to avoid the use of afields() function here. We can't use str() because it seems to stop at the decimal point. We can't take the val(str(thisvalue)) and substract it because 125 - 125.00 is still 0.
>
>Any ideas would be most appreciated!!
>
>Sandy

Take a look at the AFields() function - it places complete structure into an array, including (columns left to right) field name, field type, field length, decimals, and then some dozen other columns related to various DBGetProp() values.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform