I'm working on a game app, and am setting up a high score table as part of that. I have this line of code -
which creates a database file if one doesn't already exist. This file contains a table called HighScores, which will hold high score data. However, at the moment, the code will only create a database called Breakout automatically - it won't automatically create and populate a table called HighScores with some default data if the table doesn't already exist. So how can I make it check for a table called HighScores, and create the table if it doesn't already exist?
B4X:
Sql1.Initialize(File.DirRootExternal,"Breakout.db",True)