Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get numeric size ?
Message
De
30/07/2005 11:18:03
 
 
À
30/07/2005 11:03:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01037218
Message ID:
01037264
Vues:
22
>Hi,
>I just want to show that, the numeric has six digits.

For fields, you can use Afields(). For other values, you can easily find the number of decimals:
nValue=001234.1230
nDec=At(Set('point'),Transform(nValue))-1
I don't think you can find the number of integer digits easily, because VFP will ignore the leading zeroes. But if you know the total length, you will know this: nInt=len(nValue)-nDec-1
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform