Isuri
31-03-2009, 10:33:02
Hola,
tengo un fichero de tipo record, creo que me guarda bien los datos pero cuando intento leer, no leer nada
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
tengo un fichero de tipo record, creo que me guarda bien los datos pero cuando intento leer, no leer nada
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