Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Synchronization is a key feature of many UltraLite applications. Members of the structures in the Embedded SQL API are similar to the UltraLite C++ API.
The synchronization logic that keeps UltraLite applications up to date with the consolidated database is not held in the application itself. Synchronization scripts stored in the consolidated database, together with the MobiLink server and the UltraLite runtime library, control how changes are processed when they are uploaded and determines which changes are to be downloaded.
The specifics of each synchronization are controlled by a set of synchronization parameters. These parameters are gathered into a structure, which is then supplied as an argument in a method call to synchronize. The outline of the method is the same in each development model.
The following procedure is generally used to add synchronization to your application:
Initialize the structure that holds the synchronization parameters.
Assign the parameter values for your application.
Call the synchronization method, supplying the structure or object as argument.
Ensure that there are no uncommitted changes when you synchronize.