samedi 30 avril 2016

File.Exist(......) always False

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...

File.Exist(......) always False

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/24ddY53
via IFTTT

Aucun commentaire:

Enregistrer un commentaire