"For" keyword not necessary, plus variable types maybe not necessary.
- From: "Skybuck Flying" <spam@xxxxxxxxxxx>
- Date: Mon, 21 Jan 2008 21:53:31 +0100
Hello,
Following code could work:
procedure Main;
var
vIndex;
begin
vIndex := 1 to 100 do
begin
end;
end;
The to and do keywords should be enough for the compilers to figure out it's
a for loop
The numbers indicate it should be some kind of integer so take the integer
that will fit.
No need to write lengthy code like:
procedure Main;
var
vIndex : integer;
begin
for vIndex := 1 to 100 do
begin
end;
end;
Bye,
Skybuck.
.
- Follow-Ups:
- Prev by Date: Re: Send email with barcode
- Next by Date: procedure ( a : integer; b : integer; ); would be nice.
- Previous by thread: Send email with barcode
- Next by thread: Re: "For" keyword not necessary, plus variable types maybe not necessary.
- Index(es):
Relevant Pages
|