Platform SDK: Exchange Server |
At the top of the object hierarchy is the Application object, which represents an instance of the Schedule+ application. It is the base object through which all other objects are accessed. It is also the only object that can be retrieved directly by applications. In Visual Basic, this means that the Application object is the only object that the CreateObject function returns.
The following sample code uses the CreateObject function to return the Application object into an object variable:
Dim objApp As Object Set objApp = CreateObject("SchedulePlus.Application")
For more information on the CreateObject function, see the Microsoft Visual Basic Programming System for Windows Programmer's Guide.
All other objects, such as appointments and tasks, are accessed through properties defined on the Application object. All primary table objects are nested within the Schedule object. The table object hierarchy, as shown in the following figure, is important because it determines the correct syntax to use in your Visual Basic applications.