Wednesday 28 April 2010

Delphi Tutorial # 7

Operators

Operator is a symbol to do some operation, such as : sum, product, division, compare etc. Operator involves two or more operands. Operator and operand form an expression. Example :

    12 + 15 = 27

see the table below :

OperatorsOperands
+12
=15

27

arithmetic operators

Operator
*
/
div
mod
+
-

logic operators

Operator
not
and
or
xor
shl
shr

boolean operators

Operator
not
and
or
xor

relational operators 

Operator
>
<
>=
<=
<>
=

string operator

all relational operators also can be use for string :

Operator
>
<
>=
<=
<>
=

In the example, I will show you how to use these operators.

Go to Previous Tutorial or Next Tutorial

1 comment:

  1. i a'm finding program in a console application that linked unit .pass from project .dpr

    ReplyDelete

These links are part of a pay per click advertising program called Infolinks. Infolinks is an In Text advertising service; they take my text and create links within it. If you hover your mouse over these double underlined links, you will see a small dialog box containing an advertisement related to the text. You can choose to move the mouse away and go on with your browsing, or to click on the box and visit the relevant ad. Click here to learn more about Infolinks Double Underline Link Ads.