Android Question NonQueryComplete, I want to get some args

pesquera

Active Member
Licensed User
Longtime User
from this source:
B4X:
Dim cmd1 As String = "INSERT OR REPLACE INTO data VALUES (?, ?, ?, ?, ?)"
Dim args As List = Array (item.UserField, item.KeyField, item.ValueField, item.idField, item.TimeField)
sql.AddNonQueryToBatch(cmd1, args)
sql.ExecNonQueryBatch("GetUserItem")

Private Sub GetUserItem_NonQueryComplete (Success As Boolean)
If Not(Success) Then
   Log("Error writing to database: " & LastException)
Else 
   ? <--- Here, I want to get item.KeyField
End If

I want to get some args when NonQueryComplete event fires..
How can I do that?
I'm trying with "Sender" and "Tag" without luck

Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
start a new query in complete event if you want to retrieve values...
 
Upvote 0

pesquera

Active Member
Licensed User
Longtime User
Thanks DonManfred, but.. the values are from a List, nor from SQL data.. I want to know what was the item that fired the event
 
Upvote 0
Top