The code below is from SQLiteDatabase.Backup - Xojo Documentation
Dim backupDBFile As FolderItem = GetSaveFolderItem("", “backup.sqlite”)
If backupDBFile <> Nil Then
Dim backupDB As New SQLiteDatabase
backupDB.DatabaseFile = backupDBFile
If backupDB.CreateDatabase Then
db.Backup(backupDB, Nil, -1)
MsgBox(“Backup finished!”)
End If
End If
The line above the Message Box creates an error regarding db, “db this item does not exist.”
I’ve tried defining db but nothing seems to work. Under Globals db is Nil and Return s False.
My question is what needs to be changed or added to get the above code to work in a program?