hold class instances in vb.net 2003
-
Hello, Small question, but it's given me nightmares at the moment. Can I hold class instances in a collection, lets say arraylist? sample code that doesn't work
Dim ClasseInstance = New Classe(parametros) ' Add the instance to the arraylist InstanceHolder.Add(ClasseInstance)
it's dashing the following error when i try to add the ClasseInstance to the arraylist: Object reference not set to an instance of an object. Can someone help me out with what i missed. Thanks -
Hello, Small question, but it's given me nightmares at the moment. Can I hold class instances in a collection, lets say arraylist? sample code that doesn't work
Dim ClasseInstance = New Classe(parametros) ' Add the instance to the arraylist InstanceHolder.Add(ClasseInstance)
it's dashing the following error when i try to add the ClasseInstance to the arraylist: Object reference not set to an instance of an object. Can someone help me out with what i missed. ThanksThis error probably means that InstanceHolder is null.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
This error probably means that InstanceHolder is null.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )