How to do it...

Let's look at the following steps:

  1. Perform the necessary steps to obtain a form like this (design time):
Figure 2.3: Form at design time

First of all, we have to give a correct representation (in terms of OOP) of the fields on the form.

  1. Declare the BO:
  TCustomer = class(TObject)  private    FEmail: String;    FLastname: String;    FPassword: String;    FFirstname: String;    procedure SetEmail(const Value: String);    procedure SetFirstname(const Value: String);    procedure SetLastname(const Value: String);    procedure SetPassword(const Value: String);  public    property Firstname: String read FFirstname write SetFirstname;    property Lastname: ...

Get Delphi Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.