Procedures in Class Modules


Like calling a procedure in some instance of a form, calling a procedure in a class module requires that the call to the procedure be qualified with a variable that points to an instance of the class. For example, DemoClass is an instance of Class1:

Dim DemoClass as New Class1

DemoClass.SomeSub

However, unlike a Form, the class name cannot be used as the qualifier when referencing an instance of the class.

No comments:

Post a Comment