Hi
I have just started using Basic4android to create a database application and have encountered a slight problem. I have created an SQLite database - using SQLite Database Browser - and was wondering how to reference this using my code. I have taken the following from the beginners guide:
' initilize the database
If File.Exists(DBFileDir, DBFileName) = False Then
If FirstTime Then
File.Copy(File.DirAssets, DBFileName, DBFileDir, DBFileName)
SQL1.Initialize(DBFileDir, DBFileName, True)
End If
Else
If FirstTime Then
SQL1.Initialize(DBFileDir, DBFileName, True)
End If
End If
Could somebody please describe the necessary steps required?
Thank-you in advance.
I have just started using Basic4android to create a database application and have encountered a slight problem. I have created an SQLite database - using SQLite Database Browser - and was wondering how to reference this using my code. I have taken the following from the beginners guide:
' initilize the database
If File.Exists(DBFileDir, DBFileName) = False Then
If FirstTime Then
File.Copy(File.DirAssets, DBFileName, DBFileDir, DBFileName)
SQL1.Initialize(DBFileDir, DBFileName, True)
End If
Else
If FirstTime Then
SQL1.Initialize(DBFileDir, DBFileName, True)
End If
End If
Could somebody please describe the necessary steps required?
Thank-you in advance.