Android Question DBUtils.ExecuteMap and Null

Frank Cazabon

Member
Licensed User
Longtime User
Hi,

I have this code:

B4X:
    Dim del As Map
    del = DBUtils.ExecuteMap(SQLLite, "SELECT del_pk FROM DeliveryHistory WHERE del_rndfk = ? AND del_scancode = 1", Array As String(rndpk))

    If del = Null Then
        lblStatus.Visible = False
        btnLoad.Visible = True
    Else
        lblStatus.Visible = True
        btnLoad.Visible = False
    End If

Even though I have stepped through the DBUtils code and see "return Null" executing when cur.RowCount = 0, my variable test for del = Null is always False!

How can this be?
 
Top