SelectTab – PB Docs 2017

SelectTab

PowerScript function

Description

Selects the specified tab, displaying its tab page in the Tab
control.

Applies to

Tab controls

Syntax

Argument

Description

tabcontrolname

The name of the Tab control in which you want to select a
tab

tabidentifier

The tab you want to select. You can specify:

  • The tab page index (an integer)

  • The name of the user object (datatype DragObject or
    UserObject)

  • A string holding the name of the user object

Return value

Integer.

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

Usage

Equivalent syntax

You can select a tab by setting the SelectedTab property to the
tab’s index number:

Examples

These three examples select the third tab in tab_1. They could be in
the script for a CommandButton on the window containing the Tab control
tab_1:

This example opens an instance of the user object uo_fontsettings as
a tab page and selects it:

See also

OpenTab


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