Is corrert to do a wait for out of the resume function?
that is:
may be is evident, but when i can't use wait for in a module, i put OUT in a page called.
attacth a demo (this demo use csbuilder in msgbox and parse, but may be ignored.)
that is:
B4X:
Private Sub Button1_Click
'xui.MsgboxAsync("Hello world!", "B4X")
modDemo.MiMsgbox("hellow world#COLOR.RED# from #TYPEFACE.DEFAULTBOLD#Spain.#TYPEFACE.DEFAULT# end message")
Wait For msgbox_result(rp As Int)
If rp = DialogResponse.POSITIVE Then
modDemo.MiMsgbox("positive")
End If
End Sub
B4X:
public Sub MiMsgbox(Txt As String )
Dim Xui As XUI
Xui.Msgbox2Async(Txt ,"TITLE","yes","cancel","",Null)
[B] 'no wait for in modulse - can a put out... in a call to mimsgbox[/B]
End Sub
may be is evident, but when i can't use wait for in a module, i put OUT in a page called.
attacth a demo (this demo use csbuilder in msgbox and parse, but may be ignored.)
Attachments
Last edited: