Sub Process_Globals
Dim SQL1 As SQL
End Sub
Sub Globals
Dim qry as String
End Sub
SQL1.Initialize(File.DirInternal,"Test.db",True)
If File.Exists(File.DirInternal,"MyTable") = True Then
qry = "Drop Table MyTable"
SQL1.ExecNonQuery (qry)
Else
qry="Create Table MyTable (MyField,Int)"
SQL1.ExecNonQuery(qry)
End If
First run: "MyTable" doesn't exist, table is created. Great!
Second run: File.Exists still = False and tries to create table again. Error occurs saying table already exists (from first run Create Table). In short, File.Exists is always False. I've tried every possible change to SQL Initialize and File.Exists I can think of to no avail. What am I missing? Thanks!!