Results 1 to 3 of 3

Thread: How to pass combobox or listbox as arguement?

  1. #1

    Thread Starter
    Member engowen's Avatar
    Join Date
    Feb 2001
    Posts
    41

    Question

    Hi, I have 3 objects, listbox, combobox and listview, and 1 function.

    Calling arguement:

    GenerateInvalidResult(lstReport, cmbFolder, lstView)



    Function:

    GenerateInvalidResult(oList As ListBox, oCombo As ComboBox, oListView As ListBox)


    The error is, "type mismatch", it appear that lstReport and cmbFolder are string, inctead of object.

    Any idea how to pass them as object?
    It take a baby step for you to be here, nothing is impossible.

    v(^o^)v

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Check out your last argument in your function, your using listbox instead of listview.

  3. #3

    Thread Starter
    Member engowen's Avatar
    Join Date
    Feb 2001
    Posts
    41

    Talking Oops....

    8) work now....
    It take a baby step for you to be here, nothing is impossible.

    v(^o^)v

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