Description
Gets the text of the specified text field in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.TextFieldGetText (integer id)
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to get the text of the specified text field |
id |
The ID of the text field you want to obtain |
Return value
String.
Returns the text of the text field if it succeeds and an empty string ("") 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 gets the text through the ID of the text field in the RichTextEdit rte_1:
string ls_text integer li_id li_id = rte_1.TextFieldInsert("Test") ls_text = rte_1.TextFieldGetText (li_id) MessageBox("TextFieldGetText",ls_text)
See also