DeviceToDesktop

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

Syntax

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

Parameters

DesktopLocn

Specifies the file name and path of the .mdb file to contain the converted tables or the DSN name if ODBC support is enabled.

TableList

Specifies the list of tables converted and copied to the desktop computer. It takes the following form:

tablename<period><period>[tablename<period><period>]

If this string is a zero-length string ("") or the argument is not provided, then all tables are copied by default.

Because periods are not valid in table names, there is no need to delimit table names. Delimited 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 argument to True causes any tables with the same name in the desktop computer’s database to be overwritten. Setting this argument to False causes an error to be generated, if a table of the same name already exists. True is the default.

DeviceLocn

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