Manual of Pascal (lite)

From Delphi Pascal wiki
Jump to: navigation, search

Chapter 1: Short-Cuts of Turbo Pascal


Chapter 2: Structure of programs

  • PROGRAM name_of_program;
  • USES used_library(one or more);
  • CONST definition_of_program_constants;
  • TYPE definition_of_new_kinds_of_variables;
  • VAR definition_of_variables;


Chapter 3: Variable type


Chapter 4: First simply command


Chapter 5: Non-conditioned cycle FOR


Chapter 6: Condition IF

  • Logical expression, condition.


Chapter 7: Cycle with condition REPEAT .. UNTIL, WHILE


Chapter 8: Commands for work with string

  • Str(x:variable var; var s: string);
  • Copy(s: string; ind: Integer; poc: Integer): string;
  • Length(s: string): Integer;
  • Delete(var s: string; ind: Integer; poc: Integer);
  • Insert(zdroj: string; var s: string; ind: Integer);
  • Pos (hlad: string; ret: string): Byte;


Chapter 9: Procedure and function

  • Procedure definition
  • Function definition
  • The difference between local and global variables
  • Advantages and disadvantages of local and global variables


Chapter 10: Description uses CRT

  • ClrScr;
  • Delay(Ms:Word);
  • DelLine;
  • GoToXY(X,Y:Byte);
  • HighVideo;
  • InsLine;
  • Funkcie KeyPressed:Boolean;
  • LowVideo;
  • NormVideo;
  • NoSound;
  • Funkcia ReadKey:Char;
  • Sound(Hz:Word);
  • TextBackground(farba:byte);
  • TextColor(farba:byte);
  • Funkcia WhereX:byte;
  • Funkcia WhereY:byte;
  • Window(X1, Y1, X2, Y2: Byte


Chapter 11: Work with text file

  • Assign - Connect a file with handle
  • Reset - Reading mode
  • Rewrite - Writing mode
  • Write - Writing to a file
  • Read - Reading from a file
  • EOF - Checking end of file with Read
  • Close - End of connection


The annexes to the manual (table to help you)

  • Quick keys IDE Turbo Pascal 7.0
  • Table Variables
  • Table colors
  • Other key IDE environment.
  • ASCII Table
  • List of gray keys


Zdeno Sekerák (talk)