Delphi 7 if it matters.
procedure writeLog ( varName, varValue: string );
var
length, i :Integer;
begin
Append( logFile );
ShowMessage (varName);
For i := Length(varName) to 20 do //line 37
begin
varName := varName + ' ';
end;
WriteLn( logFile, varName + ': ' + varValue );
CloseFile( logFile );
end;
I get the error:
[Error] felirat.dpr(37): Missing operator or semicolon
All the semicolons seem just fine to me. What am I missing?