CancelSync PowerScript function
Description
Cancels the synchronization
process and rolls back any changes accumulated during the processing.
Controls
MLSynchronization, MLSync controls
Syntax
|
1 |
<span>SyncObject</span>.<span>CancelSync</span> (<span> </span>) |
|
Argument |
Description |
|---|---|
|
syncObject |
The name of the synchronization object |
Return Values
Integer. Returns 1 for success and -1
for failure.
Examples
The following code in the Clicked event of the Cancel
button on a wizard–generated synchronization progress window
cancels the synchronization:
|
1 |
long rc |
|
1 |
rc = i_uosync.<span>cancelsync</span>() |
|
1 |
IF rc = 1 THEN |
|
1 |
    mle_status.text += 'Synchronization Cancelled~r~n' |
|
1 |
ELSE |
|
1 |
    mle_status.text += 'Cancel request failed.~r~n' |
|
1 |
END IF |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest