Sqlite connection problem

Alessandro Pisoni alessandro at system-ini.it
Sat Jan 15 02:42:37 CST 2011


I have serius connection problem with my database sqlite.

my code is this:

on mouseUp
  put tAppPath() & "GestPres.db" into tDB
  put revOpenDatabase("sqlite",tDB,,,,,) into mydb
  revCloseDatabase mydb
end mouseUp


function tAppPath
  put effective filename of this stack into tFilename
  set itemdel to "/"
  if the platform = "MacOS" AND the environment <> "development" then
  ##!!
     delete item -4 to -1 of tFileName
    ## MacApp.app/Contents/MacOS/Standalonestack
  else
    delete item 1 of tFileName
  end if
   return tFilename & "/"
end tAppPath


this is the error:

Database error:Unable to open the database file

I have created the db with Sqlite Manger . I open the db with the Sqlite Manager.

thanks






Cordiali Saluti
Alessandro Pisoni


System.ini di Pisoni Alessandro
Via Grandi,5
20062 Cassano d'Adda (MI)
Tel 0363-361487 Fax 1782260060 Cell. 335440150
email:info at system-ini.it
www.system-ini.it






More information about the use-livecode mailing list