9.0

103
Private Sub Object_Terminate()
...
End
Sub
Group
Declaration
Description
Object module termination subroutine. Each time an instance is destroyed for a Object module the
Object_Terminate sub is called. If Object_Terminate is not defined then no special termination occurs.
See Also: Object Module
, Object_Initialize.
Set Instruction
Syntax
Set objvar = objexpr
-or-
Set objvar
= New objtype
Group
Assignment
Description
Form 1: Set objvar's object reference to the object reference of objexpr.
Form 2: Set objvar's object reference to the a new instance of objtype.
The Set instruction is how object references are assigned.
Example
Sub Main
Dim
App As Object
Set App = CreateObject
("WinWrap.CppDemoApplication")
App.Move 20,30 ' move icon to 20,30
Set App = Nothing
App.Quit ' run-time error (no object)
End Sub
Private Keyword
Group
Declaration
Description: