Delphi XE2 Foundations - Part 2 by Chris Rolliston

  • admin
  • April 2, 2017
  • Languages Tools
  • Comments Off on Delphi XE2 Foundations - Part 2 by Chris Rolliston

By Chris Rolliston

Half 2 of a complete advisor to the language and middle non-visual libraries of Embarcadero Delphi XE2; during this half, string dealing with, collections and I/O are coated. Adopting an built-in method, the booklet covers either more moderen and older good points along each other.

Show description

Read or Download Delphi XE2 Foundations - Part 2 PDF

Similar languages & tools books

Programming distributed computing systems: a foundational approach

Ranging from the basis that figuring out the principles of concurrent programming is essential to constructing allotted computing structures, this ebook first provides the elemental theories of concurrent computing after which introduces the programming languages that support strengthen dispensed computing platforms at a excessive point of abstraction.

Extra resources for Delphi XE2 Foundations - Part 2

Sample text

TStrings itself then appears right across the VCL and (to an extent) FireMonkey too. Thus, the Items property of a TListBox, Lines property of a TMemo, Tabs property of a TTabControl, and Strings property of a TStringGrid (amongst other examples) are all typed to it. In the case of the VCL, this produces a family tree looking like the following (FireMonkey is similar): While TStrings implements the majority of the provided functionality, it leaves storage to descendant classes. With TStringList — usually the only descendant you explicitly instantiate — a dynamic array is used internally.

Chapter overview: part three Chapter ten — the first chapter of part three — introduces packages, a Delphi-specific form of DLLs (Windows) or dylibs (OS X) that provide a convenient way of modularising a monolithic executable. The bulk of this chapter works through a FireMonkey example that cross compiles between Windows and OS X. Chapters eleven and twelve look at Delphi’s support for dynamic typing and reflection — ‘runtime-type information’ (RTTI) in the language of Delphi itself. The RTTI section is aimed primarily as a reference, however example usage scenarios are discussed.

The supported wildcards are * and ? — where an asterisk matches zero or more unspecified characters, a question mark matches a single unspecified character. Outside of square bracket pairs, any other character contained in the match string is one that must be matched if MatchesMask is to return True. Square brackets themselves allow you to specify a set of acceptable characters. Within any square bracket pair, a range of characters can be specified using a hyphen, so that [a-d] matches for ‘a’, ‘b’, ‘c’ or ‘d’.

Download PDF sample

Rated 4.81 of 5 – based on 44 votes