About the sample applications

PowerBuilder provides sample applications with source code
so you can learn and reuse the techniques used in the samples.

Code examples

One of the sample applications, PowerBuilder Code Examples,
contains many examples you can use to learn a range of coding techniques.
The examples are specifically designed to show you how to use different coding
techniques with both old and new PowerBuilder features.

Web DataWindow

To develop an application that uses Web DataWindow technology,
you can use the generic server component that is preinstalled in
EAServer and provided as a DLL for use with the Microsoft Component
Object Model (COM). You can also create your own HTML generator
server component, using the sample Web DataWindow PBL as a model.
For more information about the Web DataWindow, see the DataWindow Programmer’s
Guide

.

Installing the examples

Select the Custom setup
type in the PowerBuilder installation program and select Code Examples
from the list of components to install the Code examples and Web
DataWindow sample applications.

The samples are installed in the Code Examples subdirectory
in your PowerBuilder 9.0 directory. The Code Examples application
uses a sample Adaptive Server Anywhere database called the EAS Demo DB, which is
installed in the SybaseSharedPowerBuilder directory.
If you cannot find the Code Examples directory or the EASDEMO4.DB
file, the sample applications and the database may not have been
installed.

Opening the sample applications

To open a sample application, you need to create a workspace
for the application and then add the target for that application
to your workspace.

If there is no target file for an application, you can still
add it to your workspace. Select Existing Application from the Target
tab of the New dialog box. In the wizard that opens, navigate to
the PowerBuilder 9.0Code Examples folder, expand
the folder and PBL that contains the application you want to examine,
and select the application.

The next section contains a procedure that steps you through
opening and running the Code Examples application.