You could of course just try to load it very roughly: function IsCDSVaild(file : string) : boolean var cds : TClientDataSet begin result := true; cds := TClientDataSet.Create; try cds.LoadFromFile(file); except result := false; end cds.free; end
Alister Christie Computers for People Ph: 04 471 1849 Fax: 04 471 1266 http://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington On 17/01/2011 10:03 a.m., Matthew Comb wrote: > Does anyone know if there is a way to Validate a CDS file (midas) before > attempting to load it into the dataset ? > > Matt > > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: delphi@delphi.org.nz > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: > unsubscribe > > _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe