Switch to: V9V8V7V6V5

VTable Class: Dump Methods

VTable.Dump()

Declaration:

Dump(
	inDumpFile as FolderItem, 
	inDumpType as Integer,
	inDumpData as EVDataKind = kStructureAndRecords,
	inFormatDump as Boolean = false,
	inEncoding = "UTF-16" )

Parameters:

  • inDumpFile - The location of a dump file.
  • inDumpType - The Type of dump.
  • inDumpData - Specify which information to dump.
  • inFormatDump - If TRUE then formats the dump file for human read.
  • inEncoding - Encoding of dump file.

Description:

Dumps all possible information about a database into a dump file.

DumpType can be one of the following:

  • kSQL dump. A Text file which contains a set of INSERT commands.
  • kXML dump. A Text file which contains the database information in XML format.

Example:

dim tbl as VTable
...
tbl.Dump( fiXML, EVDumpType.kXML )

VTable.LoadDump()

Declaration:

LoadDump( 
	inDumpFile as FolderItem, 
	inDumpType as Integer,
	inEncoding = "UTF-16" )

Parameters:

  • inDumpFile - The location of a dump file.
  • inDumpType - Type of a dump.
  • inEncoding - Encoding of dump file.

Description:Loads a XML or SQL dump from the specified file into the Table.

Example:

dim tbl as VTable
...
tbl.LoadDump( fiXML, fiNewtbl, EVDumpType.kXML )