Android Question DBUtils: How to create a field that allows null values?

Frank Cazabon

Member
Licensed User
Longtime User
Hi,

Do I have to do anything special to create a table in an SQLite database with a field that accepts null values?

Here's my code to create the table and I want to allow a null value to be put in srt_date:

B4X:
    Dim m As Map
    m.Initialize
    m.Put("srt_name", DBUtils.DB_TEXT)
    m.Put("srt_date", DBUtils.DB_TEXT)
    DBUtils.CreateTable(SQLite, "SelectedRoute", m, "")
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…