PowerBuilder

CSC 340F – Information Systems Analysis and Design

Assignment 4 – Research Question 7

Instructor:

Eric Harley

Submitted By:

Michal Jordan-Rozwadowski

The Basics of PowerBuilder

 

PowerBuilder is an event-driven, object-oriented language. The programmer creates objects and then

defines the behaviour of the system in terms of the objects and the events which can occur in the

context of an object.

PowerBuilder Objects

The basic building blocks of a PowerBuilder application are objects. All programming in the PowerBuilder

environment takes place in the context of objects. These objects, their scope and their use are

represented in the following table:

Object

Use

Application

Entry point into an application

Window

Primary interface between the user and a PowerBuilder application

DataWindow

Retrieves and manipulates data from a relational database or other data source

Menu

List of commands or options that a user can select in the currently active window

Global function

Performs general-purpose processing

Query

SQL statement used repeatedly as the data source for a DataWindow object

Structure

Collection of one or more related variables grouped under a single name

User object

Reusable processing module or set of controls

Library

Stores PowerBuilder objects, such as windows and menus

Project

Packages application for distribution to users


Associated with each object is a
Painter, which enables the programmer to quickly create an object

of any of the above types and easily modify its attributes and behaviour.

Event-Driven Programming

The behaviour of the objects is defined in terms of events. When an event occurs in the context of

an object, this triggers a section of code, which is then run. The code which is attached to these

events is in a language developed by Sybase for PowerBuilder, called PowerScript.