Ver Mensaje Individual
  #2  
Antiguo 24-08-2015
cocute cocute is offline
Miembro
 
Registrado: nov 2008
Posts: 403
Reputación: 16
cocute Va por buen camino
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;
Responder Con Cita