[DUG] Validating CDS files
Alister Christie
alister at salespartner.co.nz
Mon Jan 17 10:34:38 NZDT 2011
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 at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>
>
More information about the Delphi
mailing list