I am getting an error:
attempt to index global 'sqlite' (nil value)
on startup,
does anybody know why?
Moiz
Professional Software Development Tools
I am getting an error:
attempt to index global 'sqlite' (nil value)
on startup,
does anybody know why?
Moiz
Is this for a project or template that you are using? It sounds like a project that references a database it cannot find so it cannot query the sqlite master table.
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
It is a project,Originally Posted by TJ_Tigger
I will check the code again, it works on one application (my test) and fails on the main application:
=========
---Delete old database to refresh database if files are changed
File.Delete(_SourceFolder .. "\\AutoPlay\\Docs\\Images.db", false, false, false, nil);
---set db path
sImageDatabase = _SourceFolder .. "\\AutoPlay\\Docs\\Images.db";
---Open the database, or in abscence, create one
db = SQLite.Open(sImageDatabase);
nLastError = Application.GetLastError();
if nLastError ~= SQLite.OK then
Dialog.Message("Error Opening File", SQLite.GetLastErrorString());
end
==========
It tells me that it fails on line 6 (bold)
Moiz