SetTop PowerScript function
Description
Scrolls a list box control so that the specified item is the
first visible item.
Controls
ListBox and PictureListBox controls
Syntax
|
1 |
<span>listboxname</span>.<span>SetTop</span> ( <span>index</span> ) |
|
Argument |
Description |
|---|---|
|
listboxname |
The name of the ListBox or PictureListBox |
|
index |
The number of the item you want to become |
Return Values
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:
|
1 |
lb_Actions.<span>SetTop</span>(6) |
The following statement scrolls the currently selected
item in lb_Actions to the top of the
list of items:
|
1 |
lb_Actions.<span>SetTop</span>(lb_Actions.SelectedIndex()) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest