9.0
95
Public Consts, Types, arrays, fixed length strings are not allowed.
An object module is similar to a class module except that one instance is automatically created. That instance
has the same name as the object module's name.
To create additional instances use:
C:\ABCTemp\vbs\Dim_Definition00000109.htm
Dim
Obj As objectname
Set
Obj = New objectname
It can optionally contain Attributes one of which must be VB_Name.
See Also: Attribute Definition/Statement, Class Module, Code Module, Uses.
Example
'MyCommands macro
'#Uses "Sample.OBM"
Sub
Main
Debug
.Print Sample.Name
End
Sub
'Sample.OBM object file
VERSION 1.0 OBJECT
BEGIN
MultiUse = -1 'True
END
Attribute
VB_Name = "Sample"
Option Explicit
Public
Function Name() As String
Name
= "Sample Object Module"
End
Function
Any Data Type
Group
Data Type
Description
Any variable expression (Declare only).
Boolean Data Type
Group
Data Type










