Setting up for the tutorial

Before you start the tutorial, you need to make sure that you can connect to a database and that you have the tutorial files.

Connecting to a database

The tutorial uses the EAS Demo DB V125 database that installs with PowerBuilder. This is an SQL Anywhere database and requires the Sybase SQL Anywhere engine.

If you do not already have SQL Anywhere on your local machine or server, you must install it now. You can install it from the PowerBuilder CD. If you installed PowerBuilder in a nondefault location, you must make sure that the odbc.ini registry entry defining the EAS Demo DB as a data source points to the correct location of the SQL Anywhere engine.

The Tutorial directory

The PowerBuilder installation directory includes a Tutorial folder that contains all the files you need to work with the tutorial. The installation also creates a copy of that folder under your user profile directory. You will work with the copy of the Tutorial folder, not the original source. The Tutorial folder path depends on your version of Windows:

Throughout this document, the first (XP) version of the path is given; if you are using Vista or Windows 2008, substitute the correct path for your system.

The Tutorial folder includes the following files:

Table 2-4: Files required by the PowerScript tutorial

File

Contents

tutor_pb.pbl

PowerBuilder library that contains several objects that you use in the tutorial

pbtutor.hlp

A Help file that provides context-sensitive Help to a window that you build in the tutorial

tutsport.bmp

A bitmap

tshirtw.jpg

A graphic

tutorial.ico

An icon

When you have finished the tutorial, you can delete the files.

The Tutorial\Solutions directory

The Tutorial\Solutions directory contains a PowerBuilder library called pbtutor.pbl that contains all the objects and scripts that you create in the first part of the tutorial, as well as workspace and target files. You can use this solutions library as a reference while you complete the first part of the tutorial. You can also use it as a starting point if you want to complete only the .NET application parts of the tutorial.