TextFieldGetTypeData
PowerScript function
Description
Gets the type data of the specified text field in a RichTextEdit
control.
Applies to
Syntax
|
1 |
rtename.TextFieldGetTypeData (integer id, ref string data) |
|
Argument |
Description |
|---|---|
|
rtename |
The name of the RichTextEdit control in which you want to |
|
id |
The ID of the text field you want to obtain |
|
data |
A string specifying the type data of the text field. If |
Return value
Integer.
Returns 1 for success and -1 for failure. If any argument’s value is
null, returns null.
Examples
This example gets the type data “Report” through ID of the text
field in a RichTextEdit rte_1 and displays a message if it
succeeds:
|
1 2 3 4 5 6 7 8 9 10 |
string ls_data integer li_rtn,li_id ls_data = "test data" li_id = rte_1.TextFieldInsert("Test") rte_1.TextFieldSetTypeAndData (li_id,"internallink","Report") li_rtn = rte_1.TextFieldGetTypeData(li_id, ref ls_data) if li_rtn = 1 then MessageBox("Data", ls_data) end if |
See also