Syntax 2: For synchronization with parameters
Description
Starts dbmlsync synchronization with command line parameters that
are passed from the values of a syncparm structure.
Applies to
MLSync controls
Syntax
|
1 |
SyncObject.Synchronize (cmdstring ) |
|
Argument |
Description |
|---|---|
|
syncObject |
The name of the synchronization object. |
|
cmdstring |
A read-only string containing command line arguments for |
Return value
Integer.
Returns 1 for success and any other value for failure.
Usage
The following is an example of a command string for a Synchronize
call:
|
1 2 3 4 |
C:Program FilesSAPSQL Anywhere 11Bin32 dbmlsync.exe -c "DSN=salesdb_remote;UID=dba;PWD=sql" -n salesapi -u 50 -mp "pw10" -wc salesapi_50_sync -o "C: empdbmlsync.log" -v+ -q -k |
If the path to the dbmlsync executable (C:Program FilesSAPSQL
Anywhere 11Bin32dbmlsync.exe in the above example) is not part of the
command string, the application searches the Windows registry to find
it.
Examples
For MLSync objects, you can allow a user to edit the command line
arguments for a synchronization call as follows:
|
1 2 3 4 5 6 |
long rc string cmd cmd = myMLSync.GetCommandString() // Edit cmd however you wish ... rc = myMLSync.Synchronize(cmd) |
See also