|
-
Jul 30th, 2001, 10:32 AM
#1
Formating the Caption of a label
Is there away to format the caption of a label as follows.
I want to be able to put commas in a label that contains only numeric data. There is no text at all. Right now the label look like this "1000000" I would like to change it so it looks like this "1,000,000"
Thanks
Ken Devorak
-
Jul 30th, 2001, 10:35 AM
#2
-
Jul 30th, 2001, 10:39 AM
#3
I need it to do it auto.
I did do the whole label.caption = 1,000,000 but when I do a calculation on it as follows I losse the commas.
label.caption = label.caption + intXXX
-
Jul 30th, 2001, 11:37 AM
#4
Sorry, I was a little busy.
So, check out the format function.
Heres an example:
Label2.Caption = 1234567
Label2.Caption = Format(Label2.Caption, "###,###,###,###,###")
This ends up as 1,234,567 in Label2.
-Hope this helps,
-Lou
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
|