Guest_imported
New member
- Jan 1, 1970
- 0
Why this code cause this message:
[Warning] Unit1.pas(32): Variable 'Time' might not have been initialized:
procedure TForm1.Timer1Timer(Sender: TObject);
var
Time : TDateTime;
str : string;
begin
Time := Time;
str := TimeToStr(Time);
Label1.Caption := str;
end;
end.
[Warning] Unit1.pas(32): Variable 'Time' might not have been initialized:
procedure TForm1.Timer1Timer(Sender: TObject);
var
Time : TDateTime;
str : string;
begin
Time := Time;
str := TimeToStr(Time);
Label1.Caption := str;
end;
end.