MoveTab PowerScript function
Description
Moves a tab page to another position in a Tab control, changing
its index number.
Controls
Tab controls
Syntax
1 |
<span>tabcontrolname</span>.<span>MoveTab</span> (<span>source</span>, <span>destination</span> ) |
Argument |
Description |
---|---|
tabcontrolname |
The name of the Tab control containing |
source |
An integer whose value is the index of |
destination |
An integer whose value is the index of |
Return Values
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:
1 |
tab_1.<span>MoveTab</span>(1, 0) |
This example move the fourth tab to the first position:
1 |
tab_1.<span>MoveTab</span>(4, 1) |
This example move the fourth tab to the third position:
1 |
tab_1.<span>MoveTab</span>(4, 3) |