Syntax 1 For synchronization without parameters
Description
Starts synchronization between a remote and consolidated database.
Controls
MLSynchronization, MLSync controls
Syntax
|
1 |
<span>SyncObject</span>.<span>Synchronize</span> ( ) |
|
Argument |
Description |
|---|---|
|
syncObject |
The name of the synchronization object. |
Return Values
Integer. Returns 1 for success and -1
for failure. Any other return value is an error code from dbmlsync.
Examples
If all the properties of a synchronization object
are initialized, including userids and passwords, it is ready for
immediate use. To launch a synchronization requires very little
coding, as in the following example for an MLsync object named “nvo_my_mlsync”:
|
1 |
nvu_my_mlsync mySync |
|
1 |
Long rc |
|
1 |
mySync = CREATE nvo_my_mlsync |
|
1 |
mySync.<span>Synchronize</span>() |
|
1 |
destroy mySync |
You would typically add the above code to the Clicked event
for a menu item or a command button on an application window.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest