Eric H Active Member Licensed User Longtime User Sep 8, 2013 #1 The user's guide says you can create a database inside a subdirectory using this code: B4X: 'With DirRootExternal you can also add a subdirectory. For example: DirRootExternal & "/MyDatabase"."Database" I am not understanding what this saying. I tried using this and the log blew up: B4X: SQL1.Initialize(File.DirRootExternal & "/ListDatabase","data.db", True) I am trying to create a database (data.db) inside the directory (File.DirRootExternal/ListDatabase). What am I doing wrong?
The user's guide says you can create a database inside a subdirectory using this code: B4X: 'With DirRootExternal you can also add a subdirectory. For example: DirRootExternal & "/MyDatabase"."Database" I am not understanding what this saying. I tried using this and the log blew up: B4X: SQL1.Initialize(File.DirRootExternal & "/ListDatabase","data.db", True) I am trying to create a database (data.db) inside the directory (File.DirRootExternal/ListDatabase). What am I doing wrong?
klaus Expert Licensed User Longtime User Sep 8, 2013 #2 Did you make the directory with: B4X: File.MakeDir(File.DirRootExternal, "ListDatabase") Best regards. Upvote 0
Did you make the directory with: B4X: File.MakeDir(File.DirRootExternal, "ListDatabase") Best regards.
Eric H Active Member Licensed User Longtime User Sep 9, 2013 #3 I sure didn't. Thanks Klaus. Upvote 0