Description
Sets the text of the text field in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.TextFieldSetText (integer id, string text)
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to set the text of the text field |
id |
The ID of the text field to be set |
text |
The text of the text field that displays in the control |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, returns null.
Examples
This example inserts a text field (with a text value "Test") and then changes the text value to "Content" in the RichTextEdit rte_1:
integer li_id, li_rtn li_id = rte_1.TextFieldInsert("Test") li_rtn = rte_1.TextFieldSetText (li_id,"Content")
See also