CancelSync
PowerScript function
Description
Cancels the synchronization process and rolls back any changes
accumulated during the processing.
Applies to
MLSynchronization, MLSync controls
Syntax
|
1 |
SyncObject.CancelSync ( ) |
|
Argument |
Description |
|---|---|
|
syncObject |
The name of the synchronization object that started a |
Return value
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 2 3 4 5 6 7 |
long rc rc = i_uosync.cancelsync() IF rc = 1 THEN mle_status.text += 'Synchronization Cancelled~r~n' ELSE mle_status.text += 'Cancel request failed.~r~n' END IF |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest