Caption Property

Home Page (Objects)OverviewFAQReference

Applies to: TextWindow object, Window object

Gets the caption of a window.

Syntax

object**.Caption**

Parameters

object

An expression that evaluates to a TextWindow object or a Window object.

Remarks

The Caption property has the String type.

Example

The following example gets the caption of the active window:

Dim cap
cap = Activewindow.Caption