I have 3 classes,
class one - "card". this class contains properties
class two - "cardcollection". this class inherits list of the type card
class three-"flash". this class inherits list of the type card
This code works.
For i As Integer = 0 To _cardcollec.Count - 1
Dim _card As Card
_card = _cardcollec.Item(i)
_cardcollec.Add(_card)
Next
with this code, i get this error?
Object reference not set to an instance of an object.
For i As Integer = 0 To _cardcollec.Count - 1
Dim _card As Card
_card = _cardcollec.Item(i)
_flash.Add(_card)
Next
I dont understand
thanks
mike
2007-01-24
18:00:26
·
4 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
here is where it crashes
_flash.Add(_card)
If i hover over _card, it contains the correct information.
2007-01-24
18:02:25 ·
update #1