SelectSQL error on SQLite

I make SQLite test program.

I make sensordata database as:
sqlite> select * from sensor;
1|1|22.0|85.0
2|1|14.0|85.0
3|1|16.0|60.0
4|1|32.0|77.0

This is error. why?

This is open event handler.

This is db property.

any help?

What you’ve done in the second screenshot is created a local variable named the same as your app property. Instead, you’re going to want to create a new instance of SQLiteDatabase in the app property like this:

self.db = new SQLiteDatabase self.db.DatabaseFile = ...

I fix it. and bug is fixed. Thank you!