Switch to: V9V8V7V6V5

Valentina Class: Utilities Methods

Valentina.Convert_1_2()

Declaration:

Convert_1_2( 
    inOldDb_Version1 as FolderItem, 
    inNewDb_Version2 as FolderItem,
    inLoadRecords as Boolean, 
    inNewSegmentSize as integer = 0 )

Parameters:

  • inOldDb_Version1 - Location of database in 1.x format.
  • inNewDb_Version2 - Location for new database of 2.0 format.
  • inLoadRecords - If TRUE then records are copied to new database.
  • inNewSegmentSize - Allows to change db.SegmentSize.

Description:

Convert database of 1.x format into database of 2.0 format. The old database should be closed before using this method.

Note: This function does not change the old database.

Example:

db.Convert_1_2( oldDB, newDB, true )