Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21156

How do I use a Listbox in a BAS module

$
0
0
I don't want to refer to a Listbox that is on a Form so in a BAS module I do this:

Private MyList as Listbox

then in a Sub I do this:

Set MyList = New Listbox

MyList.AddItem "entry 1"

etc

but VB does not like my Set statement so how do I do it

Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>