Ver Mensaje Individual
  #5  
Antiguo 17-05-2007
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
En el oncreate de la forma:
Código Delphi [-]
var x:Tinifile;
begin 
  x := tinifile.Create(changeFileExt(application.exename, '.ini');
  form1.left := x.ReadInteger('Posicion', 'Left', 40);
  // otras
  x.free;

En el onclose de la forma:
Código Delphi [-]
var x:Tinifile;
begin 
  x := tinifile.Create(changeFileExt(application.exename, '.ini');
  x.WriteInteger('Posicion', 'Left', Form1.left);
  // otras
  x.free;

Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente,
se lo volveré a explicar hasta que no lo entienda, Gracias.
Responder Con Cita