voxel Member Licensed User Sep 4, 2021 #1 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)
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 Sep 5, 2021 #2 voxel said: 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) Click to expand... 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
voxel said: 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) Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Sep 5, 2021 #3 Tip: use XUI.DefaultFolder in all platforms. Upvote 0
voxel Member Licensed User Sep 5, 2021 #4 aeric said: 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. Click to expand... Thank you (i forget this step) Upvote 0
aeric said: 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. Click to expand... Thank you (i forget this step)
voxel Member Licensed User Sep 5, 2021 #5 Erel said: Tip: use XUI.DefaultFolder in all platforms. Click to expand... Thank you, I will try this tip Upvote 0
Erel said: Tip: use XUI.DefaultFolder in all platforms. Click to expand... Thank you, I will try this tip