Sorry if this is a very basic question but I'd like a bit of help!
I need to create a VB list box in memory rather than on a form, so that I can still do normal list box things like List1.AddItem, but without actually having a list box on a form.
I tried this:
but it stops on the second line with RTE 91.
Can this be done?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
I need to create a VB list box in memory rather than on a form, so that I can still do normal list box things like List1.AddItem, but without actually having a list box on a form.
I tried this:
Code:
Dim EList As ListBox
EList.AddItem "This is a test"
MsgBox EList.List(0)
but it stops on the second line with RTE 91.
Can this be done?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments