Home > Tools User's Guide > Conduits
Fields and data types mapping between HB++ and desktop databases
In order to synchronize the data from the HB++ tables and the desktop databases, it is necessary to specify, for each field of the HB++ database, whether this field has to be synchronized or not; and if the case arises the name of the corresponding field on the desktop database and some other type-specific options. This is done in the Structure Tab of the Table editor.

Field mapping
When an HB++ table is created, you must set the Sync Field attribute for each field so that the conduit will be able to associate each field of the HB++ table to its counterpart in the synchronized database. The names cannot exceed 32 characters. A star ('*') means that the name of the field in the desktop database is the same as the HB++ field on the handheld device. Leaving the Sync Field empty means that the field should not be synchronized.
The fields UniqueID, Category, Dirty and Secret must be synchronized.
Type mapping for numeric types
The following table lists which data types must be used on the desktop database to store numerical data of the corresponding HB++ data types.
| HB++ type | SQL type | ADO type | |
| Boolean | BIT, TINYINT, SMALLINT, INT | adBoolean, adTinyInt, adInteger, adSmallInt, adUnsignedTinyInt, adUnsignedInt, adUnsignedSmallInt | |
| Byte | INT, SMALLINT | adUnsignedTinyInt, adInteger, adUnsignedInt,adSmallInt, adUnsignedSmallInt, adUnsignedInt | |
| Integer | INT | adSmallInt, adInteger | |
| Long | INT | adInteger | |
| Long (for data serials) | BIGINT | adUnsignedInteger | |
| Single | FLOAT, DOUBLE | adSingle, adDouble | |
| Double | DOUBLE, FLOAT | adDouble, adSingle | |
The types mentioned in bold are those used when the database on the desktop doesn't exist and is automatically created by the conduit.
Several mapping options are available for fields of type Date, String, Bitmap and StreamMemory. You can access these options by clicking the "..." button at the right of the cells in the Sync Options column of the editor table.
Type mapping for date types
Three formats are available to store dates on the desktop PC :
Type mapping for StreamMemory and Bitmap types
Three formats are available to store these objects on the desktop PC :
In the case of a Bitmap Object, an extra option allows to chose between the native HB++ format and the.BMP format. The.BMP format will easily allow to read and modify the content of the bitmaps, especially when they are stored as external files; however, information such as transparency color or density won't be stored and will be replaced by default values (no transparency; 72 bpp). On the other hand,.HBB format (Handheld Basic Bitmap) stores properly the transparency color and density, but is not accepted by any application except HB++.
Type mapping for String types
Two options are available to store HB++ Strings on the desktop PC :