Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for a snazzy way
Message
De
26/07/2001 02:43:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534851
Message ID:
00535542
Vues:
24
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
Will Jones
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform