procedure TFABCGen.MostrarDatos(Visor: TStringGrid); var F: TextFile; Lista,Lineas: TStringList; Linea: String; s: Integer; begin Lista := TStringList.Create; Lineas := TStringList.Create; GetNameFilesFromFolder( ExtractFilePath( Application.ExeName ),Lista,'*.D1',False,True,False); for s := 1 to Lista.Count -1 do begin With Visor do begin AssignFile( F, Lista.Strings[s] ); Reset( F ); Cells[0,s] := ExtractFileName( Lista.Strings[s]); //Mostramos el nombre del Archivo Cells[1,s] := IntToStr(FileSize( F )); //Mostramos el Tamaño del Archivo with Lineas do begin while not Eof( F ) do begin ReadLn( F, Linea ); Add( Linea ); end; CloseFile( F ); end; Cells[2,s] := IntToStr( Lineas.Count ); //MOstramos la cantidad de lineas del File Cells[3,s] := 'NUEVO'; //Mostramos el Estado del Archivo end; // With Visor end; //for end;
En qué estoy fallando?
Saludos.