Programming Reference Manual
 
Syntax
 
Attribute attributename = value
Attribute varname.attributename = value
Attribute procname.attributename = value
 
Description
All attribute definitions and statements are ignored except for:
•        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's help context displayed by the object
         browser.
         VB_Description - Declares the module's 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"
 
       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.
 
•        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's help context displayed by the
         object browser.
         VB_Description - Declares the procedure's help text displayed by the
         object browser.
 
See Also