Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comma from STR
Message
De
26/05/2009 13:03:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01401981
Message ID:
01401994
Vues:
56
Sergey:

I know you can do that.

I was asking if there is something like a SET command that will make the STR function act like the TRANSFORM function you described. Something like:
SET STRCOMMA ON
? STR(12345)   &Displays 12,345
SET STRCOMMA OFF
? STR(12345)  &&Displays 12345
Thanks,

Yossi
>
>? TRANSFORM(12345, "9,999,999,999")
>
>* W/o leading spaces
>? LTRIM(TRANSFORM(12345, "9,999,999,999"))
>
>
>>
>>Is there any way for the STR function to automatically return the number formatted with the ',' for the 1000 delimiter?
>>
>>Example:
>>
>>
>>? STR(12345)    &&Displays 12,345
>>
>>
>>I'm converting a Clipper program that seems to have that capability.
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform