TurboDB VCL Component Library



Previous  Top  Next

Stores the whole data set into a file.

Delphi syntax:

function SaveToFile(const FileName: string; Format: TTdbTableFormat): Integer;

C++ syntax:

int __fastcall SaveToFile(const AnsiString FileName, Tdbtypes::TTdbTableFormat Format);


Use SaveToFile if you want to make a snapshot of your data set. SaveToFile internally uses the  TTdbBatchMovecomponent to create a file in one of the available formats containing all the data of the data set. Format defines the file type of the file.

This method is especially useful when you want to store the result set of a query for further processing. You may e.g. store the result set in TurboDB format and then open a TTdbTable component for it or run another query on it.