Grade 12 practical: Choosing loops and decision structures; String processing and safe indexing.
3 free units in this chapter
Use FOR when the required index range is known in advance. A WHILE loop checks its condition before running, so its body can execute zero times. REPEAT checks after the body and therefore executes at least once; it stops…
About 7 minFor the ordinary Delphi strings used in these examples, character positions start at 1. Length returns the number of characters; Pos returns 0 when a substring is absent. Never use the result of Pos as a valid character…
About 7 minDelphi represents dates and times as a TDateTime. A family of functions reads, calculates with, and formats them.
About 3 min