My app opens with
db = new SQLiteDatabase
dim f As FolderItem = SpecialFolder.SharedApplicationData.Child("BidSheet")
if not f.Exists Then f.CreateAsFolder
db.DatabaseFile = f.Child("BidSheet.sqlite")
if not db.DatabaseFile.Exists Then
if db.CreateDatabaseFile Then
It works fine in Windows, but in OS-X, it fails when checking to see if the db file exists with a nil object exception.
I am new to OS-X. Should my code look like
#if TargetWin32
if not db.DatabaseFile.Exists Then
#Else
if db.DatabaseFile = Nil Then
#Endif
if db.CreateDatabaseFile Then
or is there something else going on?