Visual InterDev

getCaption Method

See Also      Applies To

Returns the object's caption.

Syntax

object.getCaption()

Parameters

object

A script object.

Remarks

To set the caption, use the setCaption method.

For the Checkbox and OptionGroup objects, the caption is the text that appears next to the check box on the page when viewed on the client.

For the Label object, the caption is the text of the label.

Example

In the following script, getCaption passes the Button1's caption to strCaption.

strCaption = Button1.getCaption()