buttonSetCaption

The buttonSetCaption method defines the caption associated with button.

 

Syntax

buttonSetCaption(System.String cCaption, System.Int32 nFace);

 

Parameters

cCaption

Caption of the button

nFace

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

 

Remarks

Member of field.

 

Example

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