SQLiteDatabase.Constructor(dbFile as FolderItem)

From Xojo Documentation

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

SQLiteDatabase.Constructor(dbFile As FolderItem)

New in 2019r2

Supported for all project types and targets.

Creates a SQLiteDatabase using the provided database file.


You can use this Constructor instead of manually assigning the data file using the DatabaseFile property.

Sample Code

Var dbFile As FolderItem = SpecialFolder.Desktop.Child("test.sqlite")
Var db As New SQLiteDatabase(dbFile)