Friday, October 5, 2007

How to work with CASE function

How to work with CASE function

To work with CASE function

Step 1

Description:

The case statement consists of an expression (the selector) and a list of statements, each prefixed with a case.

Declaration:

case expression of

case: statement;

...

case: statement;

end

Example:

case a of

'm': Writeln('You are the boy');

'f': Writeln('You are the girl');

end;

No comments: