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 the following:
Form 1 - Module level 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 help context displayed by the object browser.
-
VB_Description - Declares the module help text displayed by the object browser.
Form 2 - Macro/Module level variable attribute
Public varname As type Attribute varname.VB_VarUserMemId = 0 Attribute varname.VB_VarHelpID = int Attribute varname.VB_VarDescription = "text"
-
Public varname as the default property for a class module or object module.
-
VB_VarHelpID - Declares the variable help context displayed by the object browser.
-
VB_VarDescription - Declares the variable help text displayed by the object browser.
Form 3 - User defined procedure attribute
[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 help context displayed by the object browser.
-
VB_Description - Declares the procedure help text displayed by the object browser.