Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for a snazzy way
Message
 
 
To
26/07/2001 02:43:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00534851
Message ID:
00535751
Views:
12
That would be correct, you can ditch the alltrim.

>That works well. thanks Mark
>I don't think you need the alltrim, the @T does that
>
>This is still 4 lines of code (Store decimals, set decimals, then reset decimals) when it can be done in 1, but I do like the idea!
>
>Cheers
>Will
>
>>This works better. Run this code in a test PRG.
>>lnMask = 99999999
>>FOR lnI = 1 to LEN(TRANSFORM(lnMask))
>>	SET Decimals TO lnI - 1
>>	? RIGHT(ALLTRIM(TRANSFORM(lnMask/INT(10**(lnI-1)), '@T')), 8)
>>ENDFOR
>>RETURN
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform