(Contents)(Previous)(Next)

Application Object

The Application object provides methods for showing a particular item of data in a running instance of OfficeTalk and for determining the currently viewed item.

The following methods are available from the Application object:

Application Methods
ViewItem Changes to the required mode and displays the item of data according to the passed in ID.
GetViewedItem Returns the data type and ID of the item currently being viewed in OfficeTalk.
GetLoginName Gets the login name of the currently logged on user
The application object may be accessed in one of two ways, depending upon whether the you wish to run up a new instance of OfficeTalk or latch on to a running instance. To run up a new instance of OfficeTalk, create the Application object in the following way:

Set app = CreateObject("OfficeTalk.Application")

To latch on to a running instance of OfficeTalk, create the Application object in the following way:

Set app = GetObject(,"OfficeTalk.Application")

More:

ViewItem()

GetViewedItem()

GetLoginName()


Next