Looping in Delphi

1. for-to-do
for i:=LowBound to HighBound do
begin
Code;
end;

2. for-downto-do
for i:=HighBound downto LowBound do
begin
Code;
end;

3. repeat-until
repeat
Code;
until Condition;

4. while
while Codition
begin
Code;
end;

Dispense with the begin & end to execute a single line
of code. repeat loops execute at least once. Use break,
continue or exit to modify/terminate loop execution.

Advertisement

3 Responses

  1. dikasih vibi dunk……..

    bagi pemula gitu

    ^_^

  2. Sementara belum membahas Vb dan keluarganya tapi klo mo blajar Vb boleh aja privat, krim aja email request yg mo dipelajari topik apa pemrograman kan luas :-)

  3. [ MAKASEH ]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.