Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Creating an instance of MLSync – PB Docs 2021 – PowerBuilder Library

Creating an instance of MLSync – PB Docs 2021

Creating an instance of MLSync

You do not have to use the MobiLink Synchronization Wizard to
create a nonvisual object that launches Dbmlsync.exe. You can include an
MLSync system object in your applications:

  • Programmatically with PowerScript

  • By selecting it from the New dialog box

Adding an MLSync object
programatically

The code fragment below creates an instance of an MLSync object
and programmatically populates all of the necessary properties as well
as some optional properties using an instance of the system SyncParm
structure. Then it calls the Synchronize function to start the database
synchronization.

Adding an MLSync object from the New dialog
box

You can add an MLSync object to a target PBL using the New dialog
box: from the PowerBuilder menu, choose File>New, go to the PB Object
tab, select Standard Class, then MLSync. This opens a new MLSync object
in the User Object painter, where you can initialize all or some of the
properties. When you are finished, you can save it as a new object in
your target PBL.

Since all of the properties are already initialized, including
userids and passwords, it is ready for immediate use. To launch a
synchronization requires very little coding, as this example for an
MLsync object that you save as “nvo_my_mlsync” illustrates:

You would typically add the above code to the Clicked event for a
menu item or a command button on one of the application windows.

For more information

For more information on system objects related to synchronization,
and their functions, events, and properties, see MLSynchronization,
MLSync, and SyncParm in the section called “MLSynchronization object” in Objects and Controls, the section called “MLSync object” in Objects and Controls, and the section called “SyncParm object” in Objects and Controls.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x