Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check decimal points
Message
 
 
To
14/06/2004 16:45:43
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00913595
Message ID:
00913724
Views:
28
Hi Agnes,

You're welcome.

>
>thank you for pointing out this use of PADL. It seems to be the only way to get all the decimals independing of set fixed... I have searched a long time for something likethis but I have never looked that close to the function.
>
>>>
>>Try
>>lnNumber = 1.000
>>lcStr = PADL(lnNumber,20)
>>IF AT(".", lcStr) = 0
>>  ? 0
>>ELSE
>>  ? LEN(SUBSTR(lcStr, AT(".", lcStr)+1))
>>ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform