Introduction to Delphi with RPC Broker

Overview

Introduction to Delphi Programming is designed for the student who wants to learn to develop Windows applications using the Delphi product from Inprise Corporation (formerly Borland).

This course introduces Delphi's integrated development environment. Applications are built using forms, components, and event-based programming in Delphi's Object Pascal programming language.

Object Pascal is presented in detail, so students will become familiar with the language's statements, declarations, data types, procedures, functions, and object-oriented features.

The course provides an extended example showing how to use Delphi's Visual Component Library to access information stored in a remote database. For students familiar with databases using the File Manager database management system developed by the Veterans Administration, this exercise works with a specialized set of client-server software known as the RPC Broker, also from the Veterans Administration.

The average amount of time to complete the on-line materials is 14 to 16 hours.

Objectives

Upon successful conclusion of the course, the student should be able to:

Note: Students should come in with exposure to at least one programming language.

Students also must be able to configure and create a File Manager database file in order to perform the course's RPC Broker programming exercise. However, specific knowledge of M is not required for the RPC Broker exercise.

Course Outline

Lesson 1: Overview of Delphi
About Delphi What is Delphi Delphi in the Marketplace Delphi Features History of Pascal and Delphi Quick Tour Components Activity: A Simple Application Source Code Understanding the Program Observations Running Delphi Applications Controlling Execution Examining and Modifying Data Other Debugger Features Exercise: Enhancing the Application Object-Oriented Concepts Classes Encapsulation Inheritance

Lesson 2: Object Pascal Programs and Statements
bject Pascal Programs Language Characteristics Program Structure Project Structure Unit Structure Interface Section Implementation Section Uses Clause Expressions Constant Values Variables and Identifiers Operators Assignment Arithmetic Operators Comparison Operators Boolean Operators Bitwise Operators Other Operators Operator Precedence Statements Types of Statements Basic Statements Blocks Control Statements If Statements If Statements - Examples Case Statements For Statements While Statements Repeat Statements Goto Statements Exception Handling Try Blocks with Except Try Blocks with Finally

Lesson 3: Object Pascal Declarations and Data Types
Declarations Types of Declarations Constant Declarations Variable Declarations Label Declarations Procedure and Function Declarations Type Declarations Data Types Types in Delphi Simple Types Boolean Types Integer Types Real Types Character Types Strings Types Ordinal Types Enumerated Types Subrange Types Structured Types Sets Arrays Static vs. Dynamic Arrays Records Pointers Pointer Usage Dynamic Storage Allocation Typecasts Variants

Lesson 4: Object Pascal Routines and Objects
Procedures and Functions Calling Procedures and Functions Declaring Procedures and Functions Arguments and Parameters Value Parameters Variable Parameters Output Parameters Constant Parameters Default Value Parameters Overloading Objects Object-Oriented Features Member References Visibility Defining Methods Constructors and Destructors Form and Component Creation Fields and Properties Subclasses and Inheritance Inheritance Hierarchies Multiple Hierarchies Redefining Methods Overriding Methods Useful Functions and Procedures Control Flow Dynamic Storage Character and String Manipulation Date and Time Data Type Inquiry

Lesson 5: Record Editing Exercise
The Record Editing Application Behavior of the Application Components used in the Application Laying Out a Form Setting Up a Menu Basic Controls Panels Labels Edit Boxes Mask Edit Boxes Check Boxes Radio Buttons Radio Groups Buttons Tab Ordering The List View Control Exercise Coding the Application Stating the Application Exiting the Application The Main Event Handlers Coding for a List View Control TlistItems: Items in a List View Control TlistItem: a row in a List View Control Exercise

Lesson 6: Database Access From Delphi
About Databases and OBDC Creating a Database Creating the Database Adding a Table Making a Database Available to Delphi Creating an OBDC Data Source Defining an OBDC driver Establishing and Alias for the Database Database Components in Delphi Table Component DataSource Component DBGrid Component Exercise Programming a Table Component Opening and Closing Counting Records Adding and Deleting Records Navigating a Table Locating a Record Accessing Fields in a Record Exercise

Lesson 7: Accessing M Databases with the RPC Broker
M Database and the RPC Broker Creating an M database for the RPC Broker Server Configuration Configuring the RPC Broker Server RPCs on the Server Importing the RPC Broker Into Delphi Designing the Form Connecting to a Server Invoking an RPC RPCs for Database Access DDR FIND1 DDR GETS ENTRY DATA DDR DELETE DDR FILER DDR LISTER Exercise

Lesson 8: Object Pascal Compared With M
Platforms Standardization Code Editing and Debugging Graphical Components Language Characteristics Program Structure Lexical Formats Constant Values Variable Names Undefined Variables Operators Unary Arithmetic Operators Relational Operators String Concatenators Logical Operators Operator Precedence Assignment Statements Procedure Calls Function Invocations Blocks Scope Control Statements If Statements For Statements Case, While and Repeat Statements Exceptions Arrays Other Structured Types Input / Output Persistent Data Parameters Object-Oriented Features

Note: All web based training courses are Y2K (Year 2000) compliant.

Delphi is a registered trademark of Inprise Corporation.