Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for a snazzy way
Message
From
25/07/2001 08:41:31
 
 
To
25/07/2001 07:52:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00534851
Message ID:
00534897
Views:
11
>>
>>lcIm = '99999999'
>>if ( Thisform.decPlaces != 0 )
>> lcIm = Stuff(lcIm, Len(lcIm)-Thisform.decPlaces, 1, '.')
>>endif
>>
>
>Ok, I think I've found another solution
>
>
lcIm = padl(9999999 / 10 ^ Thisform.Decplaces,7) + '9'
>
>I'm now into questions of readability :(

Not quite the same though - it falls over for Decplaces > 2 (your example treated them as the same as Decplaces=0),
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform