StoreSharedObject method
| Applies to |
|---|
Syntax
This method stores an object reference for later use.
Use this method to set a shared variable to a handle to a COM object. Shared objects retain their value across event boundaries. This is useful if you need to access the same object in two or more event handlers. The objects' reference count is incremented by one.
object.StoreSharedObject(VarName As String, COMObject As Object)
|
Part |
Description |
|---|---|
|
object |
An expression evaluating to an object listed in the 'Applies to' table above. |
|
VarName |
A string value. |
|
COMObject |
Object |
Related topic