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 3 For ListView controls – PB Docs 125 – PowerBuilder Library

Syntax 3 For ListView controls – PB Docs 125

Syntax 3 For ListView controls

Description

Search for the next item relative to a specific location in
the ListView control.

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.

direction

The direction in which to search. Values
are:

  • DirectionAll!

  • DirectionUp!

  • DirectionDown!

  • DirectionLeft!

  • DirectionRight!

focused

If set to true, the
search looks for the next ListView item that has focus.

selected

If set to true, the
search looks for the next ListView item that is selected.

cuthighlighted

If set to true, the
search looks for the next ListView item that is the target of a
cut operation.

drophighlighted

If set to true, the
search looks for next ListView item that is the target of a drag
and drop operation.

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. If you want to search from the beginning, specify 0.

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.

If focused, selected, cuthighlighted,
and drophighlighted are set to false, the search
finds the next item in the ListView control.

Examples

This example uses FindItem to
search from the selected ListView item:

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