DesktopToDevice

This function allows programmatic transfer of a Windows CE–based device database file to a desktop computer.

Syntax

DESKTOPTODEVICE (DesktopLocn, TableList, Sync, Overwrite, DeviceLocn)

Parameters

DesktopLocn

Specifies the file name and path of the .mdb file to be transferred, or the Data Source Name (DSN) if ODBC support is enabled.

TableList

Specifies the list of tables and fields that is converted and copied to the device. It takes the following form:

[!]tablename[<period>fieldname]<period><period>[[!]tablename[<period>fieldname]<period><period>]

A leading exclamation point (!) marks this table as read-only on the device. If this is a zero-length string ("") or if the parameter is not provided, then the default copying of all tables and appropriate fields is performed. If a table is requested but no field list is provided, then the default fields are copied.

Because neither a period (.) nor an exclamation mark (!) are valid in field or table names, there is no need to delimit table names. Delimited field or table names are not supported.

Sync

Optional. If True, enables ActiveSync. False disables active sync. This parameter is available on the following platforms: H/PC Pro, P/PC 1.2, and Platform Builder 2.12.

Overwrite

Optional. Setting this parameter to True overwrites tables with the same name on the device. Setting this parameter to False generates new table names. True is the default.

DeviceLocn

Optional. Specifies the .cdb file that tables are copied to on the device. This parameter is available on the following platforms: H/PC Pro, P/PC 1.2, and Platform Builder 2.12.