BtServer:CopyDb()
<< Click to Display Table of Contents >>
BtServer:CopyDb()
|
|
Purpose
Copy contents of Btrieve server to DBF File
Prototype
METHOD CopyDb ( cNewFile, bForBlock, bWhileBlock ) CLASS BtServer
Argument(s)
<cNewFile> STRING Name of new table
<bForBlock> CODEBLOCK For expression , Defaults to TRUE
<bWhileBlock> CODEBLOCK While Expression, Defaults to TRUE
Return
LOGIC TRUE when the export was succesful, FALSE when a runtime error has occurred.
Description
Both the For Block and the While block receive the server object as a parameter
The exporting of records starts at the first record, using the current active index (and scope when applicable)
Both code blocks should return LOGIC values.
When the For block returns TRUE the current record is written to the DBF file
When the While block returns FALSE exporting is halted
See Also