Passing object in procedure?

laiyilam

Member
Licensed User
Longtime User
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
 

specci48

Well-Known Member
Licensed User
Longtime 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
 

laiyilam

Member
Licensed User
Longtime User
Hi specci48,

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

Paul

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
 
Top