Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Back in the form unit, uCardPanel.pas
, it starts with the unit
keyword and has both an interface
and implementation
section, each with a uses
clause."
A block of code is set as follows:
procedure TfrmPeopleList.lbPeopleClick(Sender: TObject); var APerson: TPerson; begin if lbPeople.ItemIndex > -1 then begin APerson := lbPeople.Items.Objects[lbPeople.ItemIndex] as TPerson; lblPersonName.Caption := APerson.FirstName + ' ' + APerson.LastName; lblPersonDOB.Caption := FormatDateTime('yyyy-mm-dd', APerson.DateOfBirth); end; end;
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
constructor TfrmPeopleList.TPerson.Create( NewFN, NewLN string; NewDOB: TDate); begin FFirstName := NewFN; FLastName := NewLN; FDateOfBirth := NewDOB; end;
Bold: Indicates a new term, an important word, or words that you see on screen. For instance, words in menus or dialog boxes appear in bold. Here is an example:
"Under the Develop section of Delphi's default Welcome page, click the Open a sample project… link and drill down through the Object Pascal, VCL, and CardPanel folders, and then open the CardPanel project."
Tips or important notes
Appear like this.