Caption Property
Returns the title of the Application object
window.
Syntax
Application.Caption
Applies To
Discussion
Use this property to determine the title of the application in use.
Type
String
Access
Read
Example
This example creates an instance of the IBM Cognos PowerPlay Application object and returns the name, the location and the version of the application and the title of the application window.
Sub Main()
Dim objPPlayApp as Object
Set objPPlayApp = CreateObject("CognosPowerPlay.Application")
objPPlayApp.Visible = 1
MsgBox "The title of the application is " &objPPlayApp.Caption
MsgBox "The name of the Application is " &objPPLayApp.Name
MsgBox "The location of the Application is " _
&objPPLayApp.Path
MsgBox "The Application version is " &objPPLayApp.Version
Set objPPlayApp = Nothing
End Sub