iOS Question Where are the files to read from a database?

voxel

Member
Licensed User
Hello, I am a beginner on B4i. I want to open a read / write database file but I have a file not found error. Thanks for your help

Code B4i KO : SQL2.Initialize(File.DirDocuments,"bddpref.db",False)

Code B4A OK : SQL2.Initialize(File.DirInternal,"bddpref.db",False)
 

aeric

Expert
Licensed User
Longtime User
Hello, I am a beginner on B4i. I want to open a read / write database file but I have a file not found error. Thanks for your help

Code B4i KO : SQL2.Initialize(File.DirDocuments,"bddpref.db",False)

Code B4A OK : SQL2.Initialize(File.DirInternal,"bddpref.db",False)
For first run, you need to Initialize the file with True then use command to create the tables
OR
you need to copy your db from DirAssets.
 
Upvote 1
Top