Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - AppForge Programming » Understanding UltraLite Development with AppForge » Synchronizing data

Adding the synchronization template Next Page

Writing code to use the synchronization form


Call the InitSyncForm function, passing it your ULConnection object. This must be done before each synchronization.

Example

The following code uses a synchronization status form named Form_Sync and a ULConnection object named Connection.

Form_Sync.InitSyncForm Connection
Connection.Synchronize

Each time your application synchronizes, the synchronization status form appears. As synchronization progresses, your end user can observe the progress bar and byte count. When synchronization completes, the form closes. The Cancel button instructs UltraLite to cancel the current synchronization.

See Tutorial: A Sample Application for AppForge MobileVB.