G
Guest
Hi:
I'm having trouble using an Object which is created based on the following:
Public CarDetail () as Car
Where the CLASS "Car" is defined as:
Public Class Car
Public Doors() as string
Public Color as string
End Class
While it appears that I can create the "CarDetail" Object, and exception is
thrown when I try to refer to anything that is part of "CarDetail".
I am receiving the following error: "Object reference not set to an instance
of an object.".
Ok, so I figure I need to add the "New" Keyword when I instantiate
"CarDetail":
Public CarDetail () as Car -----> Public CarDetail () as New Car
When I do this, the compilier informs me that 'arrays cannot be declared
with 'New'.
Is there an alternative to the "New" keyword that I should use in this case?
Thanks
Paul Auleciems
I'm having trouble using an Object which is created based on the following:
Public CarDetail () as Car
Where the CLASS "Car" is defined as:
Public Class Car
Public Doors() as string
Public Color as string
End Class
While it appears that I can create the "CarDetail" Object, and exception is
thrown when I try to refer to anything that is part of "CarDetail".
I am receiving the following error: "Object reference not set to an instance
of an object.".
Ok, so I figure I need to add the "New" Keyword when I instantiate
"CarDetail":
Public CarDetail () as Car -----> Public CarDetail () as New Car
When I do this, the compilier informs me that 'arrays cannot be declared
with 'New'.
Is there an alternative to the "New" keyword that I should use in this case?
Thanks
Paul Auleciems