条件语句

一.

if  条件 then;

if 条件 then 

begin

end;

 

二.case 语句用来在多个可能的情况下选择的条件,而不需要太多的if then else 语句

case 条件 of

    1 :DoSomething;

    2 :DoSomething;

end
posted @ 2012-10-20 10:04  delphiclub  阅读(201)  评论(0编辑  收藏  举报