Switch to: V9V8V7V6V5

Differences

This shows you the differences between two versions of the page.

valentina:products:adk:api:valentina_class:utilmethods [2017/02/04 06:45] (current)
Line 1: Line 1:
 +====== Valentina Class: Utilities Methods ======
 +
 +===== Valentina.Convert_1_2() =====
 +
 +**Declaration:**
 +
 +<code vb>
 +Convert_1_2(
 +    inOldDb_Version1 as FolderItem,
 +    inNewDb_Version2 as FolderItem,
 +    inLoadRecords as Boolean,
 +    inNewSegmentSize as integer = 0 )
 +</code>
 +
 +**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:**
 +
 +<code vb>
 +db.Convert_1_2( oldDB, newDB, true )
 +</code>