Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Commas from Numbers
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00313028
Message ID:
00313559
Views:
27
Andrew & Albert;

Thanks. It'll do.

>Michael,
>
>Check out the TRANSFORM() function
>
>e.g.
>
TRANSFORM(Tquery.Calc_Gross, "@$$ 999,999,999.99")
>Cheers,
>
>Andrew
>
>>I'm doing an SQL statement to build a string field from a number field. I'll be returning the string to a web page, so I'd like to have it appear with commas.
>>
>>I could write a function to convert the number to a string, then concatenate to add the needed commas, but I suspect someone out there has a better way.
>>
>>I'm using:
>>STR(Tquery.Calc_Gross)
>>to show the value without commas
>>
>>Any suggestions?
>>
>>TIA
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Previous
Reply
Map
View

Click here to load this message in the networking platform