InputFieldInsert PowerScript function
Description
Inserts a named input field at the insertion point in a RichTextEdit
control.
Controls
RichTextEdit controls
Syntax
|
1 |
<span>rtename</span>.<span>InputFieldInsert</span> ( <span>inputfieldname</span> ) |
|
Argument |
Description |
|---|---|
|
rtename |
The name of the RichTextEdit control |
|
inputfieldname |
A string whose value is the name of input |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs. If inputfieldname is null, InputFieldInsert returns null.
Usage
There can be several input fields with the same name. Fields
of a given name all have the same data value. When you call InputFieldChangeData for
a named input field, all fields with that name are changed.
Examples
If there is a selection, InputFieldInsert inserts
the field at the beginning of the selection. The input field and
the selection remain selected:
|
1 |
st_status.Text = String( & |
|
1 |
rte_1.<span>InputFieldInsert</span>("lastname")) |