A Beginner's Guide to Delphi Programming

Free online programming course for beginner Delphi developers

About the Course:

This free online course is perfect for beginner developers as well as for those who want a broad overview of the art of programming with Borland Delphi.

Developers will learn how to design, develop and test application using Borland Delphi. The chapters will cover the fundamental elements of creating Windows applications using Delphi, including the Integrated Development Environment (IDE) and the Object Pascal language.


Developers will get up to speed quickly through real world, practical examples.

This course is aimed to those who are new to programming, come from some other development environment (like MS Visual Basic, or Java) or are new to Delphi.

Prerequisites:

Readers should have at least a working knowledge of the Windows operating system. No previous programming experience is required.
  • Recommended reading: Delphi history – from (Turbo) Pascal to Delphi 2005.
    Concise descriptions of Delphi versions and its history, along with a brief list of features and notes. Find out how Delphi evolved from Pascal to a RAD tool that can help you deliver high-performance, scalable applications ranging from desktop and database solutions to mobile and distributed applications for the Internet – not only for Windows but also for Linux and the .NET.

Chapters

The chapters of this course are being created and updated dynamically on this site.
You can find the latest chapter on the last page of this article.

Start with Chapter 1 : Introducing Borland Delphi

Then continue learning, this course already has more than 18 chapters ...

The chapters of this course are being created and updated dynamically on this site. Chapters (for now) include:

CHAPTER 1:
Introducing Borland Delphi
What is Borland Delphi? Where to download a free version, how to install and configure it.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 2:

A quick journey through the main parts and tools of the Delphi integrated development environment.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 3:
Creating your first *Hello World* Delphi Application
An overview of application development with Delphi, including creating a simple project, writing code, compiling and running a project. Also, find out how to ask Delphi for help.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 4:
Learn about: properties, events and Delphi Pascal
Create your second simple Delphi application allowing you to learn how to place components on a form, set their properties, write event handler procedures to make components cooperate together.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 5:

Take a closer look at exactly what each keyword means by examining each line of the Delphi form unit source code. Interface, implementation, uses and other keywords explained in easy language!
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 6:
An introduction to Delphi Pascal
Before you start developing more sophisticated applications by using the RAD features of Delphi, you should learn the basics of the Delphi Pascal language.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 7:

Time to extend your Delphi Pascal knowledge to the max. Here are some intermediate Delphi problems and articles for everyday development tasks.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 8:

Learn the art of helping yourself, when it comes to code maintenance. The purpose of adding comments to Delphi code is to provide more program readability using understandable description of what your code is doing.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 9:
Cleaning your Delphi code errors
A discussion on Delphi design, run and compile time errors and how to prevent them. Also, take a look at some solutions to most common logic errors.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 10:
Your First Delphi Game: Tic Tac Toe
Designing and developing a real game using Delphi: Tic Tac Toe.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 11:
Your First MDI Delphi Project
Learn how to create a powerful "multiple document interface" application using Delphi.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 12:
Win a copy of Mastering Delphi 7
Delphi Programming Tic Tac Toe Contest - develop your own version of the TicTacToe game and win one copy of the great Mastering Delphi 7 book.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 13:

It's time to learn how to let Delphi help you code faster: start using code templates, code insight, code completion, shortcut keys, ...
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 14:

In just about every Delphi application, we use forms to present and retrieve information from users. Delphi arms us with a rich array of visual tools for creating forms and determining their properties and behavior. We can set them up at design time using the property editors and we can write code to re-set them dynamically at runtime.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 15:
Communicating Between Forms
In "Making Forms Work - a Primer" we looked at simple SDI forms and considered some good reasons for not letting your program auto-create forms. This chapter builds on that to demonstrate techniques available when closing modal forms and how one form can retrieve user input or other data from a secondary form.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 16:
Creating flat (non-relational) databases with no database components
Delphi Personal edition does not offer database support. In this chapter, you will find out how to create your own *flat* database and store any kind of data - all without a single data aware component.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 17:
Working with units
While developing a (large) Delphi application, as program becomes more complex, its source code can become very hard to maintain. In this article you will learn about creating your own code modues - Delphi code files that contain logically associated functions and procedures. Along the process we'll briefly discuss using Delphi's built-in routines and how to make all the units of a Delphi application cooperate.
Discuss about questions, comments, problems and solutions related to this chapter!

CHAPTER 18:

How to be even more productive with Delphi IDE (precisely, the code editor): start using code navigation features - quickly jump from a method implementation and a method declaration, locate a variable declaration using tooltip symbol insight features, and more.
Discuss about questions, comments, problems and solutions related to this chapter!