nada que no hay manera de que me guarde y recupere configuraciones, ni usando ficheros ini tampoco
Que es lo que hago mal?
en este caso intento guardar en un ini el valor de un trackbar "tr1", pero no hay manera tampoco.
Código Delphi
[-]
procedure TForm.FormClose(Sender: TObject;
var Action: TCloseAction);
var
Ini: TIniFile;
begin
Ini := TIniFile.Create(TPath.GetDocumentsPath + PathDelim + 'SAVE.INI' ) ;
try
Ini.WriteFloat('tr1', 'Value', tr1.Value);
finally
Ini.Free;
end;
end;
Código Delphi
[-]
procedure TForm.FormCreate(Sender: TObject);
var
Ini: TIniFile;
begin
if FileExists( TPath.GetDocumentsPath + PathDelim + 'SAVE.INI' ) then
begin
Ini := TIniFile.Create(TPath.GetDocumentsPath + PathDelim + 'SAVE.INI' ) ;
try
Ini.readfloat('tr1', 'Value', tr1.Value);
finally
Ini.Free;
end;
end;