Passing object in procedure?

Discussion in 'Questions (Windows Mobile)' started by laiyilam, Aug 31, 2007.

  1. laiyilam

    laiyilam Member

    Hi,

    I am a newbie.

    Is it possible to pass an object to a procedure?:sign0085:

    e.g.

    sub pLoadSomethingIntoComboBox(ipObject, ipArray)
    ' Load the ipArray into the ipObject
    end sub

    Thanks,

    Paul
     
  2. specci48

    specci48 Well-Known Member Licensed User

    Hi Paul,

    you can use the control statement for this:

    sub pLoadSomethingIntoComboBox(cbxName)
    control(cbxName).Add("Item1")
    end sub

    cbxName is the name (string) of a combobox


    specci48
     
  3. laiyilam

    laiyilam Member

    Hi specci48,

    Thanks, I will give it a try!:sign0060:

    Paul

     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice