testing my app on simulator I get error in subject, but the table exixts. in run mode works fine.
the opening code:
Code: Select all
on Connetti_DB --connette il db
local tConId
put specialFolderPath("documents") & "/Gradazione-Babo.sqlite" into tDatabasePath
put revOpenDatabase("sqlite", tDatabasePath, , , , ) into tConID
if tConID is "" then
answer warning "Problem creating or accessing database!"
else
put tConID into gConID
answer "database aperto!"
end if
end Connetti_DB
Code: Select all
put "SELECT * FROM Vitigni" into tSQL --ricava i dati vitigni dal db
put revDataFromQuery(,,gConID,tSQL) into gListaViti
handleRevDBerror gListaViti
if the result is not empty then
answer warning the result
exit preOpenCard
end if
one more question: I have put the DB in the folder Documents of the pc and declared the DB in specialFolderPath documents, why the progr. create an empty copy of it in the folder where the progr. is? why does it looking for in that folder?
thanks for help
franco