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

MoveTab – PB Docs 2022 – PowerBuilder Library

MoveTab – PB Docs 2022

MoveTab

PowerScript function

Description

Moves a tab page to another position in a Tab control, changing its
index number.

Applies to

Tab controls

Syntax

Argument

Description

tabcontrolname

The name of the Tab control containing the tab you want to
move.

source

An integer whose value is the index of the tab you want to
move.

destination

An integer whose value is the index of the destination tab
before which source is moved. If destination is 0 or greater
than the number of tabs, source is moved to the end.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs.

Usage

MoveTab also reorders the tab pages in the Tab control’s Control
array (which is a property that lists the tab pages within the Tab
control) to match the new tab order.

Examples

This example moves the first tab to the end:

This example move the fourth tab to the first position:

This example move the fourth tab to the third position:

See also

OpenTab

SelectTab


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