Hi All<BR><BR>I have a class like this<BR><BR>Public Class TestClass<BR><BR> Private lstrFName As String<BR><BR> Property FirstName() As String<BR> Get<BR> FirstName = lstrFName<BR> End Get<BR> Set(ByVal Value As String)<BR> lstrFName = Value<BR> End Set<BR> End Property<BR>end class<BR><BR>And im trying to create multiple instances of the class and hold it as an array like this<BR><BR>Public Class testclass1<BR> Public Function GetClasses() As TestClass()<BR> Dim cArrayClasses() As TestClass = {New TestClass()}<BR> Dim lintCounter1 As Integer<BR> ReDim cArrayClasses(500)<BR> For lintCounter1 = 0 To 1<BR> cArrayClasses(lintCounter1).FirstName = "Some Name" & lintCounter1<BR> Next<BR> End Function<BR><BR>when i call the function testclass1.getclasses i get an error (at line - cArrayClasses(lintCounter1).FirstName = "Some Name" & lintCounter1) saying Object reference not set to an instance of an object. could someone pls help?<BR><BR>thanks<BR>sazhagu