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

CreatePage – PB Docs 2021 – PowerBuilder Library

CreatePage – PB Docs 2021

CreatePage

PowerScript function

Description

Creates a tab page if it has not already been created.

Applies to

User objects used as tab pages

Syntax

Argument

Description

userobject

The name of the tab page you want to create

Return value

Integer.

Returns one of the following values:1 if the page is successfully
created and -1 if the page was already created or if it is not a tab
page.

1 — The tab page was successfully created

0 — The tab page has already been created

-1 — The user object is not a tab page

Usage

A window will open more quickly if the creation of graphical
representations is delayed for tab pages with many controls. However,
scripts cannot refer to a control on a tab page until the control’s
Constructor event has run and a graphical representation of the control
has been created. When the CreateOnDemand property of the Tab control is
selected, scripts cannot reference controls on tab pages that the user has
not viewed. CreatePage allows you to create a tab page if it has not
already been created.

Examples

This example tests whether tabpage_2 has been created and, if not,
creates it:

See also

PageCreated


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