Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 25th, 2005, 11:24 AM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default FormatNumber Problem please help

I can't manage to find a way how to format numbers like below:

Original Number: 65000
I want it formatted this way: 65,000

I tried various ways using the FormatNumber function but I can't get exactly what I want. I want to display a comma after the third number from the right. It must be a comma and not a point.

Can anyone please help me

Thanks You
 
Old October 26th, 2005, 08:16 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to acdsky
Default

Hi

Usually you would not want to store your numbers in the database in that format but only display. You could add the commas on client side using java script.

Check this link: http://javascript.internet.com/messages/add-commas.html

Hope this helps

Regards
Marnus





Similar Threads
Thread Thread Starter Forum Replies Last Post
FormatNumber Problem please help ivanv Classic ASP Basics 3 November 2nd, 2005 08:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.