Results 1 to 8 of 8

Thread: [RESOLVED] Combo box fill ?

Hybrid View

  1. #1
    Addicted Member Darren M.'s Avatar
    Join Date
    Nov 2005
    Location
    D/FW
    Posts
    200

    Re: Combo box fill ?

    I'm sure there are otherways to do this but just off the cuff....
    vb Code:
    1. Private Sub Form_Load()
    2.    
    3.     Dim lngCounter As Long
    4.    
    5.     Combo1.Text = Format(CStr(lngCounter), "##0.00")
    6.     For lngCounter = 0 To 100
    7.         Combo1.AddItem Format(CStr(lngCounter), "##0.00")
    8.     Next lngCounter
    9.    
    10.    
    11. End Sub
    Last edited by Darren M.; Jan 9th, 2012 at 12:23 PM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    282

    Re: Combo box fill ?

    Quote Originally Posted by Darren M. View Post
    I'm sure there are otherways to do this but just off the cuff....
    vb Code:
    1. Private Sub Form_Load()
    2.    
    3.     Dim lngCounter As Long
    4.    
    5.     Combo1.Text = Format(CStr(lngCounter), "##0.00")
    6.     For lngCounter = 0 To 100
    7.         Combo1.AddItem Format(CStr(lngCounter), "##0.00")
    8.     Next lngCounter
    9.    
    10.    
    11. 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 ?

  3. #3
    Addicted Member Darren M.'s Avatar
    Join Date
    Nov 2005
    Location
    D/FW
    Posts
    200

    Re: Combo box fill ?

    Quote Originally Posted by VB Client/Server View Post
    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
  •  



Click Here to Expand Forum to Full Width