Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class code question (I think)

Status
Not open for further replies.

TeresePamela

Programmer
Sep 4, 2003
40
US
I'm using another person's mdb as a learning tool and when I run the analyzer-documenter the following code is shown at the very beginning of the code section of the documentation, but I cannot find it *anywhere* in the application. Can anyone tell me what this is, is it necessary? how would I produce it? anything else??
The code is (minus the lines):
-----------------------------------------------
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 True
END
Attribute VB_Name = "Form_frmSearchForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredID = True
Attribute VB_Exposed = False
Option Compare Database

-------------------------------------------

Thanks for any input offered.
Pam
 
These lines are generated automatically when you declare a new class and describe to the VBA compiler some attributes of the class.

Unlike in VB6 these attributes are not exposed in the property window (probably because you can't produce a free standing class in VBA - in other words an ActiveX control) but the VBA compiler still needs them defined for it to compile correctly.

So yes they are necessary and no you shouldn't ever change them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top