Android Question B4X Table: Event parameter is missing. (warning #36)

Alessandro71

Well-Known Member
Licensed User
Longtime User
B4A 10.9 adds an additional check for Resumable Subs
The following code now raises a warning #36
B4X:
Wait For (B4XT_checks.SetData(data)) Complete
We should add a return parameter after Complete, but which is the correct one?
The SetData floating info does not specify the returned values, probably because it is unused.
In such cases, what is the correct behavior?
 

Peter Simpson

Expert
Licensed User
Longtime User
@Alessandro71
The easiest solution is just to do the following
B4X:
Wait For (B4XT_checks.SetData(data)) Complete (Completed As Boolean)

Now just add 'Return True' at the bottom of the B4XT_checks...... sub
 
Upvote 0

Alessandro71

Well-Known Member
Licensed User
Longtime User
SetData is not a sub of mine, it's from B4XTable
I just have to comply my code to the value it returns, but I don't know what type is it
 
Upvote 0

Alessandro71

Well-Known Member
Licensed User
Longtime User
I resorted to looking at the B4XTable source to find out SetData returns a Boolean.
The question becomes: when the source is not available, and the returned value is of no use, any return type will suffice, or something like (unused as Object) ?
 
Upvote 0
Top