InputFieldLocate PowerScript function
Description
Locates an input field in a RichTextEdit control and moves
the insertion point there.
Controls
RichTextEdit controls
Syntax
|
1 |
<span>rtename</span>.<span>InputFieldLocate</span> ( <span>location</span> {, <span>inputfieldname</span> } ) |
|
Argument |
Description |
|---|---|
|
rtename |
The name of the RichTextEdit control |
|
location |
A value of the Location enumerated datatype
|
|
inputfieldname |
A string whose value is the name of the |
Return Values
String. Returns the name of the input
field it located if it succeeds. InputFieldLocate returns
an empty string if no matching input field is found or if an error
occurs. If any argument is null, InputFieldLocate returns null.
Usage
There can be several input fields with the same name. Fields
of a given name all have the same data value.
Examples
This example locates the next input field after the
insertion point. If found, ls_name is
set to the name of the input field:
|
1 |
string ls_name |
|
1 |
ls_name = rte_1.<span>InputFieldLocate</span>(Next!) |
This example locates the last input field in the
document:
|
1 |
string ls_name |
|
1 |
ls_name = rte_1.<span>InputFieldLocate</span>(Last!) |
This example locates the last occurrence in the document
of the input field named address. If found, ls_name is
set to the value “address”:
|
1 |
string ls_name |
|
1 |
ls_name = rte_1.<span>InputFieldLocate</span>(Last!, "address") |