Browse Source

* In view of recent bug, use traditional for i:=Low() to High instead of for in

git-svn-id: trunk@27090 -
michael 11 years ago
parent
commit
c07559bbd1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/fcl-js/src/jswriter.pp

+ 3 - 1
packages/fcl-js/src/jswriter.pp

@@ -1204,6 +1204,7 @@ end;
 Function TTextWriter.Write(Const Args: Array of const) : Integer;
 Function TTextWriter.Write(Const Args: Array of const) : Integer;
 
 
 Var
 Var
+  I : Integer;
   V : TVarRec;
   V : TVarRec;
   S : String;
   S : String;
   U : UnicodeString;
   U : UnicodeString;
@@ -1211,8 +1212,9 @@ Var
 
 
 begin
 begin
   Result:=0;
   Result:=0;
-  For V in Args do
+  For I:=Low(Args) to High(Args) do
     begin
     begin
+    V:=Args[i];
     S:='';
     S:='';
     U:='';
     U:='';
     case V.VType of
     case V.VType of