Programming in Object Pascal language

The most important commands from Object Pascal programming language in one place, a unique comparison and each command-operator is shown using a piece of program. Statements-operators of these sample programs are clickable, so with a simple click we have more information available.

Programming language Object Pascal:


Examples - Object Pascal

Object Pascal
i - 10
3.14 - 1
if i - 10 >0 then i := i-5;
Object Pascal
i / $ab
27 / 3
(2.5 / 2 + 1.25) + 2

Other pieces of example codes:
Object Pascal
128 shl (j shl(3 + i))
{ x = 20
y = 3 / 2;
 f(5) } 
y := longword((x * y));
a or true
if x>5 then
  y := x / $a;  // y = 1
if x>$abc then
  y := x / $a;    // y = 466
Languages: en hu cz sk