Hello, I come back with my problem.
Is TStringGrid has been modified ? the problem is maybe not reading file but on the display side. When I use the lazarus debugger, I can see my record and i looks to be correct.
The problem looks to be here :
(GridVariables is a TStringGrid where I place variables of MQL4 language) Name, Type, Value, Comment and the key for updating is Name, Type and Comment
Procedure TForm1.LookUpVar(Sender: TObject; KW : UnicodeString);
BEGIN
i := 0; b := false;
Repeat
inc(i);
if (i > GridVariables.RowCount-1) then
begin
GridVariables.InsertRowWithValues(i,['','','','']);
end;
if (GridVariables.Cells[0,i] = KW) AND
(GridVariables.Cells[1,i] = Champs(ligne.ligne,2)) AND
(GridVariables.Cells[3,i] = Champs(ligne.ligne,4)) THEN b := true
else
if GridVariables.Cells[0,i] = '' then b := true;
Until (b);
GridVariables.Cells[0,i] := KW;
GridVariables.Cells[1,i] := Champs(ligne.ligne,2);
GridVariables.Cells[2,i] := Champs(ligne.ligne,3);
GridVariables.Cells[3,i] := Champs(ligne.ligne,4);
END;