Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

InputFieldLocate – PB Docs 126 – PowerBuilder Library

InputFieldLocate – PB Docs 126

InputFieldLocate PowerScript function

Description

Locates an input field in a RichTextEdit control and moves
the insertion point there.

Controls

RichTextEdit controls

Syntax

Argument

Description

rtename

The name of the RichTextEdit control
in which you want to locate an input field.

location

A value of the Location enumerated datatype
that specifies the occurrence of the input field you want to locate.
Values are:

  • First! – The
    first occurrence in the document of inputfieldname,
    or if no name is specified, the first input field in the document

  • Last! – The last occurrence in the document
    of inputfieldname, or if no name is specified,
    the last input field in the document

  • Next! – The occurrence of inputfieldname that
    is after the insertion point, or if no name is specified, the next
    input field of any name after the insertion point

  • Prior! – The occurrence of inputfieldname before
    the insertion point, or if no name is specified, the next input
    field of any name before the insertion point

inputfieldname

A string whose value is the name of the
input field you want to locate. If there are multiple occurrences
of inputfieldname in the control, location specifies
the one to be located.

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:

This example locates the last input field in the
document:

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”:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x