Ver Mensaje Individual
  #5  
Antiguo 30-11-2006
Avatar de Héctor Randolph
[Héctor Randolph] Héctor Randolph is offline
Miembro Premium
 
Registrado: dic 2004
Posts: 882
Reputación: 22
Héctor Randolph Va por buen camino
Hola

Puedes hacer uso de un archivo INI de Windows, esto te evitara tener que construir las rutinas para guardar y recuperar datos

Ejemplo de uso para guardar

Código Delphi [-]
//Abrimos el fichero
with Tinifile.Create ('C:\Variables.ini') do
try
  WriteInteger ('MiSeccion','Variable1',Variable);
finally
  Free; //Cerramos el Fichero
end;

Para recuperar el dato

Código Delphi [-]
//Abrimos el fichero
with Tinifile.Create ('C:\Variables.ini') do
try
  Variable:=ReadInteger ('MiSeccion','Variable1',0);// si no encuentra el valor por defecto tomará un cero
finally
  Free; //Cerramos el Fichero
end;

Espero que sea útil, saludos
Responder Con Cita