title: How to increase the FOR-loop value in a FOR-loop statement?
body: <p>I want to know how to increase the value in a FOR-loop statement.</p>
  
  <p>This is my code.</p>
  
  <pre><code>function Check(var MemoryData:Array of byte;MemorySignature:Array of byte;Position:integer):boolean;
  var i:byte;
  begin
   for i := 0 to Length(MemorySignature) - 1 do
   begin
    while(MemorySignature[i] = $FF) do inc(i); //&lt;&lt; ERROR &lt;&lt;
    if(memorydata[i + position] &lt;&gt; MemorySignature[i]) then Result:=false;
   end;
   Result := True;
  end;
  </code></pre>
  
  <p>The error is: E2081 Assignment to FOR-Loop variable 'i'.</p>
  
  <p>I'm trying to translate an old code from C# to Delphi,but I can't increase 'i'.
  Increasing 'i' is not the only way to go,but I want to know where the problem is.</p>