SQLite Stack
Posted: Wed Feb 24, 2010 4:52 pm
I have downloaded the SQLite stack from the resource center, but am having issues running the create database portion of the stack.
I went ahead a setup a very simple example that looks like so:
on preOpenCard
put specialFolderPath("Documents") & "/AppReg3.db" into myPath
answer myPath
global gConID
put revOpenDatabase("sqlite", myPath, , , , ) into tConID
if tConID is "" then
answer warning "Problem creating or accessing database!"
else
answer information "AppReg Connected! Your connection ID is: " & tConID
put tConID into gConID
end if
end preOpenCard
When I run this I get the following error:
card id 1002: execution error at line 5 (Function: error in function handler) near "revOpenDatabase", char 8
I am running Windows 7, could that be the problem here? I swear I remember getting this to work quite easily in the past.
I get a similar error message when I run through the SQLite stack from the resource center. Any ideas?
Thanks in advance,
Wake
I went ahead a setup a very simple example that looks like so:
on preOpenCard
put specialFolderPath("Documents") & "/AppReg3.db" into myPath
answer myPath
global gConID
put revOpenDatabase("sqlite", myPath, , , , ) into tConID
if tConID is "" then
answer warning "Problem creating or accessing database!"
else
answer information "AppReg Connected! Your connection ID is: " & tConID
put tConID into gConID
end if
end preOpenCard
When I run this I get the following error:
card id 1002: execution error at line 5 (Function: error in function handler) near "revOpenDatabase", char 8
I am running Windows 7, could that be the problem here? I swear I remember getting this to work quite easily in the past.
I get a similar error message when I run through the SQLite stack from the resource center. Any ideas?
Thanks in advance,
Wake