SQLiteDatabase.LastRowID
From Xojo Documentation
Method
Returns an Int64 containing the value of the last RowID added to any table in the database.
Example
This example gets the last rowid of a row added to the team table in an previously connected database: