G
Guest
How would I create an array of objects inside a class? When I do it the
following way I get an error that says: 'Object reference not set to an
instance of an object'.
Public Class Inmate
Private strName As String
Private strSSN As String
Private strDOB As String
Private myMugshotPicture() As MugshotPicture
End Class
Public Class MugshotPicture
Private strPictureName As String
Private strDateTaken As String
End Class
following way I get an error that says: 'Object reference not set to an
instance of an object'.
Public Class Inmate
Private strName As String
Private strSSN As String
Private strDOB As String
Private myMugshotPicture() As MugshotPicture
End Class
Public Class MugshotPicture
Private strPictureName As String
Private strDateTaken As String
End Class