TextBuffer.setText Method [AX 2012]

Sets the content of the TextBuffer object to the specified string, overwriting any existing content.

public void setText(str string)

Run On

Called

Parameters

string
Type: str
A string that contains the new text for the TextBuffer object.

If the TextBuffer object contains any content, it is overwritten by the new content.

{ 
    TextBuffer txtb = new TextBuffer(); 
    txtb.setText("This is the first text."); 
    // Now txtb contains exactly that text. 
}

Community Additions

ADD
Show: