Example code should have a tab, acordion or any other mechanism to display bot 2 options, Api1 and Api 2 Example. Also, Api 2 examples should have being tested, not just edited without waranty of working
I bet no one tested this code before doing the changeā¦
https://documentation.xojo.com/api/databases/sqlitedatabase.html#sqlitedatabase-encrypt
Var db As New SQLiteDatabase
db.DatabaseFile = New FolderItem("db.sqlite")
Try
db.Connect Then
db.Encrypt("howdy+doody")
Catch error As DatabaseException
// handle error here
End Try