Delphi Script statements

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

A statement in Delphi Script is simple when it does not contain any other statements. Examples of simple statements are assignment statements and procedure calls.

Simple statements

X := Y + 10; // assignment

ShowMessage(‘Hello World!’); // procedure call

A component statement consists of multiple statements. An example include

Compound statements

Begin

    If A > B Then ShowMessage(‘A is bigger’)

    Else ShowMessage(‘B is bigger’);

    A := 0;

    B := 0;

End;

In Delphi script, when you are assigning values to variables, you use the colon-equal operator, :=. When you are testing for equality, you just use the equality operator, =.

See also

Conditional statements

If Then statement

Case Of statement

With statement

For To Do loop

Repeat Until loop

While Do loop

Continue statement

Goto Label statement

Exit statement

Break statement

Your Ad Here