Is it possible to return moren than 1 value in resumable subs like
B4X:
Dim SenderFilter As Object = sql.ExecQueryAsync("SQL", "SELECT * FROM table1", Null)
Wait For (SenderFilter) SQL_QueryComplete (Success As Boolean, rs As ResultSet) '<=== like
SQL_QueryComplete
Put them both into a map and return the map.
As far as i know you can not return multiple values from a sub. Not in a normal way and even not in a resumeable sub.
Put them both into a map and return the map.
As far as i know you can not return multiple values from a sub. Not in a normal way and even not in a resumeable sub.
as a simple Sub. how do you call a sub then? with Callsub3 and Callsubdelayed3 (better the later)
B4X:
private sub yourSub
wait for yourResumableSub_Complete(args1 as int, args2 as int)
end sub
private sub yourAnotherSub
do something...
callsubdelayed3(me,"yourResumableSub_complete",args1,args2)
end sub
as a simple Sub. how do you call a sub then? with Callsub3 and Callsubdelayed3 (better the later)
B4X:
private sub yourSub
wait for yourResumableSub_Complete(args1 as int, args2 as int)
end sub
private sub yourAnotherSub
do something...
callsubdelayed3(me,"yourResumableSub_complete",args1,args2)
end sub