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

SetTop – PB Docs 2021 – PowerBuilder Library

SetTop – PB Docs 2021

SetTop

PowerScript function

Description

Scrolls a list box control so that the specified item is the first
visible item.

Applies to

ListBox and PictureListBox controls

Syntax

Argument

Description

listboxname

The name of the ListBox or PictureListBox that you want to
scroll

index

The number of the item you want to become the first
visible item

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, SetTop returns null.

Examples

This statement scrolls item 6 in lb_Actions to the top of the
ListBox so that it is the first visible item:

The following statement scrolls the currently selected item in
lb_Actions to the top of the list of items:

See also

SetFocus

SetState


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