Delphi XE2 Foundations - Part 1 by Chris Rolliston

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

By Chris Rolliston

Half 1 of a entire advisor to the language and center non-visual libraries of Embarcadero Delphi XE2; during this half, easy language syntax and OOP performance are lined. Adopting an built-in procedure, the ebook covers either more recent and older beneficial properties along each other. whereas it will not train you the way to application, it assumes little Delphi wisdom particularly.

Show description

Read or Download Delphi XE2 Foundations - Part 1 PDF

Best languages & tools books

Programming distributed computing systems: a foundational approach

Ranging from the idea that figuring out the rules of concurrent programming is essential to constructing allotted computing platforms, this publication first offers the elemental theories of concurrent computing after which introduces the programming languages that support boost dispensed computing structures at a excessive point of abstraction.

Additional resources for Delphi XE2 Foundations - Part 1

Sample text

In particular, classes (which are reference types) are not ‘managed’, but variants (which are value types) are. Furthermore, any record or static array that contains at least one item with a managed type will effectively become an honorary managed type itself. This is to ensure the managed item or items are initialised and finalised correctly. Pointer types A pointer is a variable that refers to a particular memory location. Pointers in Delphi come in two main forms. The first are ‘untyped’ pointers, denoted by the Pointer type.

Default parameter values (optional parameters) With a few limitations, both value and constant parameters can be declared to have a default value, making their explicit passing optional: procedure Foo( const Name: string = 'John Smith'; Age: Integer = 55); begin WriteLn(Name, ' is ', Age); end; begin Foo; //output: John Smith is 55 Foo('Joe Bloggs'); //output: Joe Bloggs is 55 end. When being declared, all parameters to the right of the first parameter given a default value must be given one too.

Language basics What sort of language is Delphi? The basic structure of a Delphi program Doing things Identifiers Typing in Delphi Types of types Variables and constants Looping constructs Conditional statements Procedures and functions Units Error handling Pointers and dynamically allocated memory 2. Simple types: enumerations, numbers and date/times Enumerated types Sets Working with numbers: integers Real numbers: floating point types Working with dates, times and timings Converting between numerical units 3.

Download PDF sample

Rated 4.32 of 5 – based on 45 votes