Hi, both ways work apparently the same, but what are the pros and cons of using one or the other option.
Thank you.
Thank you.
B4X:
Sub timgv1_Click(X As Int, Y As Int)
CallSubDelayed3("","ControlarUbicacion",X,Y)
End Sub
Sub ControlarUbicacion( X As Int, Y As Int )
' Do something here.
End Sub
B4X:
Sub timgv1_Click(X As Int, Y As Int)
Wait For (ControlarUbicacion(X,Y)) complete (oRes As Object)
End Sub
Sub ControlarUbicacion( X As Int, Y As Int ) As ResumableSub
' Do something here.
Return Null
End Sub