Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for a snazzy way
Message
De
25/07/2001 07:52:45
 
 
À
25/07/2001 05:42:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534851
Message ID:
00534873
Vues:
18
>
>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 :(
Will Jones
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform