?? [Warning]...: For loop control variable must be simple local variable
From: Tom de Neef (tdeneef_at_qolor.nl)
Date: 01/23/05
- Previous message: Stark: "How to set a field value to another filed value"
- Next in thread: Rob Kennedy: "Re: ?? [Warning]...: For loop control variable must be simple local variable"
- Reply: Rob Kennedy: "Re: ?? [Warning]...: For loop control variable must be simple local variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 23 Jan 2005 18:46:39 +0100
I do not understand why this message:
[Warning] ... : For loop control variable must be simple local variable
is reported in this case (D6):
unit blabla
...
var k : integer;
initialization
for k:=0 to 5 do keyTrend[k]:=ThtmlSingleTrend.create;
finalization
for k:=5 downto 0 do keyTrend[k].free;
end.
The compiler accepts the for-loop in the initialization section. The message
results from the finalization section.
Tom
- Previous message: Stark: "How to set a field value to another filed value"
- Next in thread: Rob Kennedy: "Re: ?? [Warning]...: For loop control variable must be simple local variable"
- Reply: Rob Kennedy: "Re: ?? [Warning]...: For loop control variable must be simple local variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|