All is in the title… I’m trying to bring my apps from realstudio to xojo but I have troubles with database file creation…
My RealStudio script doesn’t work anymore and even if I use SQLiteDatabase, still won’t work…
I always get Error 1 : Operation cannot be completed because the database is closed.
I have a global variable db and here is my script :
[code]function createDB( f As FolderItem)
{
db = new SQLiteDatabase
db.DatabaseFile = f
db.EncryptionKey = “My Encryption Key”
if( db.createDatabaseFile ) then
// Do something…
end if
}[/code]
In debug mode, I get this error at the second line «db.DatabaseFile = f»
Any idea?