I don't know why, but that worked. I've been programming in VB for years
and never really understood the difference between a declaration with and
without New.
Thanks.
"Brian" <no****@prairie.lakes.com> wrote in message
news:vn************@corp.supernews.com...
Did you use NEW to declare your array list? Your code worked perfectly
when I tried it.
Dim tColors as New ArrayList()
"Stephen" <gr******@bellatlantic.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... I hate this error and usually can find a way to fix it but this one has
me stumped
tColors is an ArrayList
At first I had this:
tColors.Add(ColorsTextBox.Text)
Now I have this:
Dim str As String
str = ColorsTextBox.Text
tColors.Add(str)
Neither one works and both give me the "Object reference not set to an
instance of an object" error. How is str NOT an instance of an object??
It is clearly defined right above.