Class Nesting Weirdness??
I have the following skeletal routine:
Module Module1
Public Class ClassA
Public Sub RoutineA()
Dim Param As Integer
Call RoutineB(Param)
End Sub
Public Class ClassB
Public Sub RoutineB(ByRef Glob As Integer)
Glob = 3
End Sub
End Class ' End ClassB
End Class ' End ClassA
End Module
The Call SubRoutineB(Param) flags an error "name SubroutineB not declared"!
From what I have read, the "public" declaration should have made all the routine names available globally. Am I missing something or is there something about nesting classes that I do not understand?
All the best,
HotBlue.
|