Sqlite connection problem
Klaus on-rev
klaus at major.on-rev.com
Sat Jan 15 06:10:59 EST 2011
Buongiorno Alessandro,
> 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.
Does the current user of your standalone have ADMIN rights?
Only users with ADMIN privileges are allowed to WRITE in the application folder!
> thanks
>
>
> Cordiali Saluti
> Alessandro Pisoni
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
More information about the use-livecode
mailing list