Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   thousand seperator for a number (http://www.velocityreviews.com/forums/t794014-thousand-seperator-for-a-number.html)

eddie wang 04-16-2004 06:48 PM

thousand seperator for a number
 
I have a number 12345. How to add thousand seperator for the number to
become 12,345? Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Ray at 04-16-2004 06:56 PM

Re: thousand seperator for a number
 
eddie,

Download the WSH documentation here:
http://www.microsoft.com/downloads/d...6-1C4099D7BBB9

Then look up the formatNumber function, assuming you're using VB Script.

Ray at work

"eddie wang" <ewang@kmg.com> wrote in message
news:eVumdN%23IEHA.2824@TK2MSFTNGP12.phx.gbl...
> I have a number 12345. How to add thousand seperator for the number to
> become 12,345? Thanks.
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!




Bullschmidt 04-19-2004 04:49 AM

Re: thousand seperator for a number
 
Yes the VBScript FormatNumber() function could be helpful.

Visual Basic Scripting Edition Functions

http://msdn.microsoft.com/library/de.../en-us/script5
6/html/vtorifunctions.asp

Best regards,
J. Paul Schmidt, Freelance ASP Web Consultant
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT. The time now is 08:11 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.