Results 1 to 2 of 2

Thread: copy a file ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    92

    Post defined a combo box by procedure ?

    Hii

    how can i defined the combobox items by procedure in the load time ?
    i try this one and it isn't work :


    Public Sub init(comboname As ComboBox)

    comboname.AddItem "Custom_qa"
    comboname.AddItem "S0scripts"
    comboname.AddItem "S6web02"
    comboname.AddItem "D6web02"
    comboname.AddItem "D1web02"
    comboname.AddItem "D6web01"
    comboname.AddItem "s1web01"
    comboname.AddItem "s1web02"
    comboname.AddItem "S6secure"
    comboname.AddItem "S1secure01"
    End Sub

    and I call to the procedure :

    init (combowebservewrname)

    help pls !



  2. #2
    Guest

    Re: defined a combo box by procedure ?

    Originally posted by Anavim
    Hii

    how can i defined the combobox items by procedure in the load time ?
    i try this one and it isn't work :


    Public Sub init(comboname As ComboBox)

    comboname.AddItem "Custom_qa"
    comboname.AddItem "S0scripts"
    comboname.AddItem "S6web02"
    comboname.AddItem "D6web02"
    comboname.AddItem "D1web02"
    comboname.AddItem "D6web01"
    comboname.AddItem "s1web01"
    comboname.AddItem "s1web02"
    comboname.AddItem "S6secure"
    comboname.AddItem "S1secure01"
    End Sub

    and I call to the procedure :

    init (combowebservewrname)

    help pls !


    I put the code in the form declarations and after, I put it in a module. The code works fine for me.

    and its:

    Call init(combo1)

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