Results 1 to 7 of 7

Thread: Populating a combobox

  1. #1
    antma
    Guest

    Populating a combobox

    Quick question

    i wanna populate a cbobox with values 8 to whatever..

    what is wrong with this because it is starting at 10 and ending with
    8 and 9

    For i = 7 To 49

    FrmValues.CboVal.AddItem i+ 1

    Next

    whats wrong here?

  2. #2
    Addicted Member stevess's Avatar
    Join Date
    May 2001
    Posts
    251
    Lets eliminate the bad code first, try this

    For i = 7 To 49

    FrmValues.CboVal.AddItem CStr(i + 1)

    Next i

  3. #3
    Addicted Member stevess's Avatar
    Join Date
    May 2001
    Posts
    251
    It works fine for me even without my change

  4. #4
    antma
    Guest
    Its got 2 start at 8 but still seems to be ending with 8 and 9

  5. #5
    Addicted Member stevess's Avatar
    Join Date
    May 2001
    Posts
    251
    I get 8 to 50, no problem.

  6. #6
    antma
    Guest
    Im propably doing something worong thanx any way

  7. #7
    Addicted Member stevess's Avatar
    Join Date
    May 2001
    Posts
    251
    Post your code. We'll fix it.

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