From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As FolderItem )
aiOSSQLiteDatabase.DatabaseFile = newFolderItemValue
FolderItemValue = aiOSSQLiteDatabase.DatabaseFile

Supported on Mobile (iOS).

Specifies the FolderItem for the SQLite database file. If DatabaseFile is Nil, calling the Connect method creates an in-memory database.

Sample Code

Connect to an existing database:

Var db As New iOSSQLiteDatabase

Var dbFile As FolderItem
dbFile = SpecialFolder.Documents.Child("MyDB.sqlite")

If dbFile.Exists Then
db.DatabaseFile = dbFile
If db.Connect Then
// proceed with database operations here...
Var err As Text = "Could not open the database."
End If
End If