buttonGetCaption

The buttonGetCaption method returns the caption associated with button.

 

Syntax

System.String buttonGetCaption(System.Int32 nFace);

 

Parameters

nFace

[Optional] Type of Caption: 0: normal caption (default), 1: down caption, and 2: rollover caption.

 

Return Value

Returns the caption of the button.

 

Remarks

Member of field.

 

Example

var obj = this.getField("Button");
var caption = obj.buttonGetCaption();
obj.buttonSetCaption(caption + " Amyuni");