|
-
Jan 9th, 2012, 12:19 PM
#1
Addicted Member
Re: Combo box fill ?
I'm sure there are otherways to do this but just off the cuff....
vb Code:
Private Sub Form_Load() Dim lngCounter As Long Combo1.Text = Format(CStr(lngCounter), "##0.00") For lngCounter = 0 To 100 Combo1.AddItem Format(CStr(lngCounter), "##0.00") Next lngCounter End Sub
Last edited by Darren M.; Jan 9th, 2012 at 12:23 PM.
-
Jan 9th, 2012, 12:38 PM
#2
Thread Starter
Hyperactive Member
Re: Combo box fill ?
 Originally Posted by Darren M.
I'm sure there are otherways to do this but just off the cuff....
vb Code:
Private Sub Form_Load()
Dim lngCounter As Long
Combo1.Text = Format(CStr(lngCounter), "##0.00")
For lngCounter = 0 To 100
Combo1.AddItem Format(CStr(lngCounter), "##0.00")
Next lngCounter
End Sub
thx, but what about regional settings, for some region it will be "." and for some ","
how to avoid that so that will be only "." dot ?
-
Jan 9th, 2012, 02:08 PM
#3
Addicted Member
Re: Combo box fill ?
 Originally Posted by VB Client/Server
thx, but what about regional settings, for some region it will be "." and for some ","
how to avoid that so that will be only "." dot ?
Ya know, that's a really good question. Unfortunately, I have little to no experience with the "," requirement. (I'm spoiled I suppose.) Let me play around w/ that a bit and I'll see if I can work up something a bit more dynamic. It's cold and rainy here today, I need a challenge. Thanks!
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
|