Caption Property [Application]

 

Caption returns or sets the main window title for the application. Returns a string.

 

Syntax

object.Caption

object.Caption = newVal

 

Parameter

Type

Description

newVal

String

required, new caption name

 

Remarks

The Caption property value will only remain on the page while the window is in view. Once the window is changed to another map document, the caption reverts to its default value.

 

Example 1

This example returns the caption.

 

Debug.Print mvApp.Caption

 

Example 2

This example sets the application window title to MapViewer Window Title.

 

mvApp.Caption = "MapViewer Window Title"

 

Used by: Application object