Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add comma to the given number
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
how to add comma to the given number

for example if number is 2000 then it should display 2,000

and if number is 20500 then it should display 20,500

I request some1 to give me the function for displaying the format mentioned as above...

Reply
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
Could you try with below codes.
Code:
str=FormatCurrency(2000)
str=Mid(str,2,len(str))
Reply
#3
Solved: 10 Years, 9 Months, 2 Weeks ago
Thank you very much
Reply
#4
Solved: 10 Years, 9 Months, 2 Weeks ago
Go to the following Link

http://www.devguru.com/technologies/vbsc...umber.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to give comma seprator when RS is returned multiple results? prasannadr 0 1,796 03-29-2012, 12:56 PM
Last Post: prasannadr
  what add-ins should i add... Venkat 1 3,320 03-07-2011, 12:38 AM
Last Post: akbarsharifmd
  Count the number of 3 number appers between 0-3333 SaranKumarV 1 3,538 09-20-2010, 06:32 PM
Last Post: rdemers25
  is webservice add in is different from web add in in qtp? hikpvasanth 1 3,234 10-07-2008, 07:23 PM
Last Post: niranjan

Forum Jump:


Users browsing this thread: 2 Guest(s)