Micro Focus QTP (UFT) Forums

Full Version: Add comma to the given number
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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...

Could you try with below codes.
Code:
str=FormatCurrency(2000)
str=Mid(str,2,len(str))
Thank you very much