Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comma from STR
Message
From
26/05/2009 13:03:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01401981
Message ID:
01401994
Views:
57
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.
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform