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

Syntax 2 For ListView controls – PB Docs 125 – PowerBuilder Library

Syntax 2 For ListView controls – PB Docs 125

Syntax 2 For ListView controls

Description

Searches for the next item whose label matches the specified
search text.

Controls

ListView controls

Syntax

Argument

Description

listviewname

The ListView control for which you want
to search for items

startindex

The index number from which you want
your search to begin

label

The string that is the target of the
search

partial

If set to true, the
search looks for a partial label match

wrap

If set to true, the
search returns to the first index item after it has finished

Return Values

Integer. Returns the index of the item
found if it succeeds and -1 if an error occurs.

Usage

The search starts from startindex + 1
by default. To search from the beginning, specify 0.

If partial is set to true,
the search string matches any label that begins with the specified
text. If partial is set to false, the search
string must match the entire label.

If wrap is set to true,
the search wraps around to the first index item after searching
to the end. If wrap is set to false, the search
stops at the last index item in the ListView.

FindItem does not select the item it finds.
You must use the item’s selected property in conjunction
with FindItem to select the resulting match.

Examples

This example takes the value from a SingleLineEdit
control and passes it to FindItem:

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