Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3804

Keep a DB open for all screens

$
0
0

Hi all,

I am building an iOS app that uses a SQLite DB. My thought process when building was to add the DB as a public shared property to the App section, and in the Opening event make the DB connection so that it can then be shared by all screens within the app.

The DB definitely connects during app opening, but when I go to use it in a screen later on it gives a NillObjectException. What (probably basic) step am I missing? Do I need to declare it in each screen, or reconnect each time?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3804

Trending Articles