Syntax 2 For synchronization with parameters
Description
Starts dbmlsync synchronization with command
line parameters that are passed from the values of a syncparm structure.
Controls
MLSync controls
Syntax
|
1 |
<span>SyncObject</span>.<span>Synchronize</span> (<span>cmdstring </span>) |
|
Argument |
Description |
|---|---|
|
syncObject |
The name of the synchronization object. |
|
cmdstring |
A read-only string containing command |
Return Values
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 |
C:Program FilesSybaseSQL Anywhere 11Bin32<br>   dbmlsync.exe |
|
1 |
-c "DSN=salesdb_remote;UID=dba;PWD=sql" -n salesapi |
|
1 |
-u 50 -mp "pw10" -wc salesapi_50_sync |
|
1 |
-o "C: empdbmlsync.log" -v+ -q -k |
If the path to the dbmlsync executable
(C:Program FilesSybaseSQL 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 |
long rc |
|
1 |
string cmd |
|
1 |
cmd = myMLSync.GetCommandString() |
|
1 |
// Edit cmd however you wish |
|
1 |
... |
|
1 |
rc = myMLSync.<span>Synchronize</span>(cmd) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest