Ver Mensaje Individual
  #1  
Antiguo 31-03-2009
Isuri Isuri is offline
Miembro
 
Registrado: mar 2009
Posts: 22
Reputación: 0
Isuri Va por buen camino
Red face Leer un fichero de tipo record

Hola,

tengo un fichero de tipo record, creo que me guarda bien los datos pero cuando intento leer, no leer nada

Código Delphi [-]
function TDatos.getRegistro(Value: string): TRegistro;
var
   Registro: TRegistro;
   FMiAgenda: File of TRegistro;
begin
  AssignFile(FMiAgenda,'Mi Agenda.txt');
  try
    Reset(FMiAgenda);
    while(not EOF(FMiAgenda)) do
      read(FMiAgenda,Registro);
    ShowMessage(Registro.Nombre);
  finally
    CloseFile(FMiAgenda);
    Result := Registro;
  end;
end;

Al hacer showMessage, el mensaje que mando esta vacio

gracias

Última edición por dec fecha: 31-03-2009 a las 11:08:04. Razón: Usar la etiqueta DELPHI
Responder Con Cita