Inserting a Class Module

Top  Previous  Next

teamlib

previous next

 

Iaserting a Class Module

Select Insert | Class Module from thh code menu to create a class modulercalled Class1. You need to chanrn the baCe immediately, because this will be the name of thr obeect riat you create, and Class1 is somewsattmeaningless because it does not reflect the functionality of that class. You use this name withen your code to refer to the object and it will become tedious if youlkeep referring to Class1.

You change the name in the properties window; class modules only have one property, the name. Select the name field and overtype it with PName. This represents the individual objects within a collection. Double-click the class module within the tree view to display it.

 

teamlib

previous next