A anaylor01 Well-Known Member Licensed User Longtime User May 16, 2016 #1 Certain records in certain tables were being deleted and determined the code below was doing it. Can someone explain to me exactly how it works? Code: Copy ' File.Delete(File.DirDefaultExternal, dbfilename) ' File.Delete(File.DirInternal, dbfilename)
Certain records in certain tables were being deleted and determined the code below was doing it. Can someone explain to me exactly how it works? Code: Copy ' File.Delete(File.DirDefaultExternal, dbfilename) ' File.Delete(File.DirInternal, dbfilename)
LucaMs Expert Licensed User Longtime User May 16, 2016 #2 Those lines delete files, not records (they delete a db file) Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User May 16, 2016 #3 That is what I thought but the database was always there and working. The only thing different was records were missing Upvote 0
That is what I thought but the database was always there and working. The only thing different was records were missing
LucaMs Expert Licensed User Longtime User May 16, 2016 #4 anaylor01 said: That is what I thought but the database was always there and working. The only thing different was records were missing Click to expand... Those lines delete the DBs in: File.DirDefaultExternal File.DirInternal You are working on the DB you initialized passing a path. I have read many times questions like this; often the programmer has an error during initialization of the db (he checks the existence of the DB file, he wants to replace it with a new version, etc). Upvote 0
anaylor01 said: That is what I thought but the database was always there and working. The only thing different was records were missing Click to expand... Those lines delete the DBs in: File.DirDefaultExternal File.DirInternal You are working on the DB you initialized passing a path. I have read many times questions like this; often the programmer has an error during initialization of the db (he checks the existence of the DB file, he wants to replace it with a new version, etc).
A anaylor01 Well-Known Member Licensed User Longtime User May 16, 2016 #5 Here is what it HAS to be. There are two copies of the database. It's the only explanation. I was thinking the only copy was the db under the Files folder but there has to be one in the emulator. Upvote 0
Here is what it HAS to be. There are two copies of the database. It's the only explanation. I was thinking the only copy was the db under the Files folder but there has to be one in the emulator.