Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim var as Variant
var = 12982
Set var = Nothing
Set var = New Adodb.Recordset
Set var = Nothing
Set var = CreateObject("MyDLLName.ClassName")
'etc.
'Bad Way
Dim obj As Object
Set obj = CreateObject("MyDLLName.ClassName")
'Good Way
Dim obj As MyDLLName.ClassName
Set obj = CreateObject("MyDLLName.ClassName")
Private Sub MyFunction(ByVal i_sClassName)
Select Case i_sClassName
Case "Class1"
DIM obj as MyClasses.Class1
Case "Class2"
DIM obj as MyClasses.Class2
Case "Class2"
DIM obj as MyClasses.Class2
End Select
Set obj = CreateObject(i_sClassName)
obj.DoSomething
Set obj = Nothing
End Sub
Private Sub MyFunction(ByVal i_sClassName)
Dim obj as Object
CallByName i_sClassName, "DoSomething", VbMethod
End Sub