When you connect to a database by selecting its database profile, PocketBuilder writes the profile name to the MRUProfile (for “most recently used” profile) string value in the following registry key: HKEY_CURRENT_USER\Software\Sybase\PocketBuilder\2.0\ DatabaseProfiles\Pocket PB.
PocketBuilder also adds the profile to a list of recently-used profiles for the current workspace under the Workspace subkey. These profiles display in the Recent Connections list in the File menu for the workspace.
Each time you connect to a different database, PocketBuilder overwrites the MRUProfile value in the registry with the name for the new database connection.
When you open a painter that accesses the database, you are connected to the database you used last. PocketBuilder determines which database this is by reading the registry.