Creating and opening workspaces
Before you can do any development in PowerBuilder, you need
to create or open a workspace.
Creating a workspace
To create a new workspace:
-
Click the New button in the PowerBar.
or
Select File>New from the menu bar.
or
In the Workspace tab of the System Tree, right-click
on the workspace name and select New from the popup menu.The New dialog box opens.
-
On the Workspace tab, select Workspace.
The New Workspace dialog box displays.
-
Enter a name for the workspace (.pbw) you want
to create and click Save.The workspace is created and the name of the new workspace
displays in the PowerBuilder title bar.
Opening a workspace
The next time you start PowerBuilder, the workspace you had
open last is automatically opened. You can change this behavior
by modifying options on the Workspaces tab of the System Options
dialog box or on the Welcome to PowerBuilder screen. For example,
you can have PowerBuilder open not only the workspace, but also
the objects and scripts you worked on last. See “Starting PowerBuilder with
an open workspace”.
When PowerBuilder opens with an open workspace, it displays
the name of the current workspace in the title bar. The current
workspace is also displayed in the Workspace tab page in the System
Tree. While you can create multiple workspaces, you can only have
one workspace open at a time. You can change workspaces at any time.
To change workspaces:
-
Select File>Open Workspace from
the menu bar.or
In the Workspace tab of the System Tree, right-click
on the workspace name and select Open Workspace from the popup menuThe Open Workspace dialog box displays.
-
Select the workspace you want to open from the
list.The workspace is changed and the name of the new workspace
displays in the PowerBuilder title bar.
To change the workspace to a recent workspace:
-
Select File>Recent Workspaces from the
menu bar and select the workspace.The workspace list includes the eight most-recently-accessed
workspaces. You can include up to 36 workspaces on the list by selecting
Tools>System Options and modifying the number of items.