A Local variable is a variable whose scope is limited to the Block of the Subroutine defining it.
Private Sub Command1_Click
Dim a as integer
End Sub
Module Level Variable
A Module Level variable is a variable whose scope is limited to the
Form Module defining it.
Public Sub Command1_Click
Dim a as integer
End Sub
Global Level Variable
A Global Level variable is a variable whose scope can be limited to
the entire project defining it.
Private Sub Class_Initialize ()
Dim a As Integer
End Sub
Creation of Active X DLLS
a. The steps for creating a Active X DLLS are as follows:
b. Determine the features your component will provide.
c. Determine what objects are required to divide the functionality
of the component in a logical fashion.
d. Design any forms your component will display.
e. Design the interface — that is, the properties, methods,
and events — for each class provided by f. your component.
g. Create a project group consisting of your component project and
a test project.
h. Implement the forms required by your component.
I. Implement the interface of each class.
j. As you add each interface element or feature, add features to your
test project to exercise the new functionality.
k. Compile your DLL and test it with all potential target applications.