• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 25. Automation: Communicating wi... > Using CreateObject and GetObject

Using CreateObject and GetObject

Before you can talk to an application, you need to know the objects contained in it. You then can use Dim, Private, or Public statements to point to and control various application objects. Each product comes with documentation indicating which objects it supports. You also can view the objects that a product supports by using the Object Browser. After you create an object variable, you can manipulate the object without user intervention.

CreateObject

To create an instance of an object, you first must create a generic object variable that holds a reference to the object. You can do this by using a Dim statement:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint