Api 2 Documentation is not very well implemented

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 :frowning:

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

Although I think Appleā€™s documentation is quite poor, I do like how they have a Swifs vs. Objective C switch on the website, so you can see either API. +1 to the idea of Xojo doing the same.