Plz can someone help me discover what is wrong with the flwg code:
Code: Select all
put specialFolderPath("documents") into g_sfp_docs
put g_sfp_docs & "/airnews/sqlite/newsapp.sqlite" into t_sqlpath
answer(t_sqlpath)
put revOpenDatabase("sqlite",t_sqlpath, , , ) into g_DBid
answer("g_DBid="&g_DBid)
The response to the first "answer" statement is:
/Users/paulr/Library/Application Support/iPhone Simulator/5.1/Applications/8202ED65-3120-4DB7-B3D9-953F2CADDAF0/Documents/airnews/sqlite/newsapp.sqlite
That's what I would expect, and newsapp.sqlite is at that location. It is owned by 'paulr' and has perms of 777.
The second "answer" statement is never reached and so produces no output.
I assume therefore there is an error in the "revOpenDatabase" statement, but as I say, it works if the environment is not mobile (and the database is in the expected documents area for that environment).
Have I put the sqlite database in the wrong place for iOS?
TIA...
--paul