W poniższym kodzie zródłowym wyskakuje mi błąd W1037 FOR-Loop variable 'Counter' may be undefined after loop. Jak sobie z nim poradzić
for Counter:=0 to SizeRecord-1 do
begin
Data:=FileBuffer[Counter];
iF EditorBuffer1.Active=EditorActive Then
Begin
Asm
mov al,Data
mov ebx,Adres
call Memory1Out8Black
End;
End
Else
Begin
Asm
mov al,Data
mov ebx,Adres
call Memory2Out8Black
End;
End;
Inc(Adres);
end;