I have searched in the forums and not found this
I have a class, one of its variables is another collection class
I can successfully create the first object and within its init event I create the other collection.
for example
class tstudent
collection class tstudents
class tclassroom
collection class tclassrooms
When I create an object of type classroom I also create an object within it of type students this works ok.
that is when I write
dim classrooms as tclassrooms
set classrooms= new tclassrooms
classrooms.add vars
' within tclassroom is this code
Private Sub Class_Initialize()
Set mvarStudents = New tstudents
End Sub
everything Zen to this point the debugger says an object of type tstudents is all ready to go within each classroom object
however when I try to create a student within students
such as
classrooms(1).students.add(var, var2, varetc )
I get error 438 object doesn't support this property or method.
Any ideas on why this error.
Debugging is the process of removing bugs. Programming is the process of putting them in
I have a class, one of its variables is another collection class
I can successfully create the first object and within its init event I create the other collection.
for example
class tstudent
collection class tstudents
class tclassroom
collection class tclassrooms
When I create an object of type classroom I also create an object within it of type students this works ok.
that is when I write
dim classrooms as tclassrooms
set classrooms= new tclassrooms
classrooms.add vars
' within tclassroom is this code
Private Sub Class_Initialize()
Set mvarStudents = New tstudents
End Sub
everything Zen to this point the debugger says an object of type tstudents is all ready to go within each classroom object
however when I try to create a student within students
such as
classrooms(1).students.add(var, var2, varetc )
I get error 438 object doesn't support this property or method.
Any ideas on why this error.
Debugging is the process of removing bugs. Programming is the process of putting them in