Application object
Sets a shared object variable to a handle to an ActiveX object. Shared objects retain their values across event boundaries. This is useful if you need to access the same object from two or more event handlers.
Normally you use this method in the event handler from the AppStart event where you create the remote ActiveX object, and then save it using SetSharedObject so that subsequent event handlers can access the same instance of the object (using GetSharedObject) without having to create the object each time it is required. The objects’ reference count is incremented by one.