SQLiteDatabase.CreateDatabase
From Xojo Documentation
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
Method
Creates a new SQLiteDatabase using the FolderItem in the DatabaseFile property.
Notes
If the database already exists, this function works like Database.Connect. If CreateDatabase succeeds, the DatabaseFile property will bet set to the DatabaseFile. If CreateDatabase does not succeed, an IOException is raised.
This code creates a database file and catches the exception if the operation fails: