R
RADO
Hi all,
I am trying to pass a Listbox into a sub, and declared something like this:
Sub Handle_ListBox (MyListBox as ListBox)
MyListBox.Enabled=False
....
End sub
When I try to pass a listbox to the sub:
Handle_Listbox formHello.listboxVendors
I get a "type mismatch" error. The same approach works perfectly for combo
box.
What's the difference? Where am I wrong?
Thanks -
RADO
I am trying to pass a Listbox into a sub, and declared something like this:
Sub Handle_ListBox (MyListBox as ListBox)
MyListBox.Enabled=False
....
End sub
When I try to pass a listbox to the sub:
Handle_Listbox formHello.listboxVendors
I get a "type mismatch" error. The same approach works perfectly for combo
box.
What's the difference? Where am I wrong?
Thanks -
RADO