|
-
Dec 11th, 2005, 07:01 PM
#1
Thread Starter
Junior Member
Making VB put a "," in 1,000!? [not just 1000]
when VB generates random or calculated numbers over 999 it never puts a comma to seperate the units.
i.e i want it to print 54,000 not 54000!
any ideas?
-
Dec 11th, 2005, 07:12 PM
#2
Re: Making VB put a "," in 1,000!? [not just 1000]
Numbers are not formatted - you need to use strings and perhaps Format() function:
strNumber = Format(lngNumber, "###,###,##0")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|