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

Deploying UltraLite for MobileVB applications to Palm OS Next Page

Maintaining state in UltraLite Palm applications

Palm OS devices run only one application at a time. However, when a user switches from your application to another application, and then returns to your application, it is common to make applications appear as they were simply suspended while the user was working with other applications. To maintain this illusion, the application must save its internal state when the user switches to another application. When the application is launched again, it must restore its internal state.

Saving and restoring state in a database application can be challenging, as the application must re-open result sets and re-position the application within those result sets. UltraLite provides a way for you to save and restore application state.

The state of cursors on result sets is maintained automatically. MobileVB applications that use the table-based API provide a value for the persistent name parameter in the Open method of the ULTable object.

Understanding how state is maintained
Example: Using the persistent name to maintain state information