Creating an Object Variable to Access an Object
The Declare Variable statement creates an object variable named oBC and assigns a picklist business component to this variable. The Assign COM Object statement uses a get method to assign the business component to the oBC variable. Note the following:
If you instantiate an application, then you can use the GetObject method or the CreateObject method.
If the application is already open on the Microsoft Windows desktop, then you use GetObject.
If the application is not open, then you can use CreateObject.
For more information, see the following topics: