Attribute Definition/Statement
Syntax
Attribute attributename = value
Attribute varname.attributename = value
Attribute procname.attributename = value
Group
Description
All attribute definitions and statements are ignored except for:
- Form 1: Module level attribute
- Form 2: Macro/Module level variable attribute
- Form 3: User defined procedure attribute
Attribute VB_Name = "name"
Attribute VB_GlobalNameSpace = bool
Attribute VB_Creatable = bool
Attribute VB_PredeclaredId = bool
Attribute VB_Exposed = bool
Attribute VB_HelpID = int
Attribute VB_Description = "text"
VB_Name - Declares the name of the class module or object module.
VB_GlobalNameSpace - Declares the class module as a global class. (ignored)
VB_Creatable - Declares the module as creatable (True), non-creatable (False). (ignored)
VB_PredeclaredId - Declares the module as a predeclared identifier (True). (ignored)
VB_Exposed - Declares the module as public (True). (ignored)
VB_HelpID - Declares the module's help context displayed by the object browser.
VB_Description - Declares the module's help text displayed by the object browser.
Attribute varname.VB_VarUserMemId = 0
Attribute varname.VB_VarHelpID = int
Attribute varname.VB_VarDescription = "text"
VB_VarUserMemID - Declares Public varname as the default property for a class module or object module.
VB_VarHelpID - Declares the variable's help context displayed by the object browser.
VB_VarDescription - Declares the variable's help text displayed by the object browser.
[Sub | Function | Property
[Get|Let|Set] procname ...
Attribute procname.VB_UserMemId = 0
Attribute procname.VB_HelpID = int
Attribute procname.VB_Description = "text"
...
End [Sub | Function | Property]
VB_UserMemID - Declares Property procname as the default property for a class module or object module.
VB_HelpID - Declares the procedure's help context displayed by the object browser.
VB_Description - Declares the procedure's help text displayed by the object browser.
HelpFile:
Each macro/module can define the HelpFile for the object browser:
'#HelpFile "helpfile"
where "helpfile" is a full path to the help file associated with the help text and help context.