Operators

Operators are the symbols in your code that enable you to manipulate all types of data. For example, there are operators for adding, subtracting, multiplying, and dividing numeric data. There are also operators for addressing a particular element of an array. This section explains some of the Pascal operators and describes some of the differences between their Java, C, and Visual Basic counterparts.

Assignment Operators

If you're new to Pascal, Delphi's assignment operator is going to be one of the toughest things to get used to. To assign a value to a variable, use the := operator as you would use the = operator in Java, C, or Visual Basic. Pascal programmers often call this the gets or assignment operator, and, the expression

 Number1 ...

Get Borland® Delphi™ 6 Developer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.