Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get numeric size ?
Message
From
30/07/2005 11:18:03
 
 
To
30/07/2005 11:03:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01037218
Message ID:
01037264
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform