Android Question how to delete record from customlist view based on item value

Makumbi

Well-Known Member
Licensed User
Please i have this code below to i wanted to use so that i can delete a recode on the item value say date for example because in my log i see a different value please help
Screenshot_1586555022.png

B4X:
    Log("ItemLongClick " & Index)
    Log(Value)
    Msgbox2Async("Do you to delete this Message?", "Delete", "Confirm", "", "Cancel", Null, True)
    Wait For Msgbox_Result (Result As Int)
    If Result <> DialogResponse.POSITIVE Then Return
    clvMessages.RemoveAt(Index)

so the delete also happens in my sql lite database too

B4X:
    oSQL.ExecNonQuery("CREATE TABLE tbl_Messages (Id INTEGER PRIMARY KEY, Timestamp INTEGER, ChatClientName TEXT,  Message TEXT, IOflag TEXT)")
 

Attachments

  • Backup ChatExample 2020-04-11 00.53.zip
    12.6 KB · Views: 104
Last edited:
Top