moore_it Well-Known Member Licensed User Longtime User Sep 25, 2017 #1 Hi all. it's possible to get the msgbox2 title in MsgBox2_Click(ButtonText as string) event ? Thanks in advice
Hi all. it's possible to get the msgbox2 title in MsgBox2_Click(ButtonText as string) event ? Thanks in advice
Erel B4X founder Staff member Licensed User Longtime User Sep 26, 2017 #2 Correct way to use Msgbox2: B4X: Msgbox2("Msg", "Do you want to do delete document?", "Title", Array ("Yes", "No")) Wait For Msg_Click (ButtonText As String) If ButtonText = "Yes" Then 'delete document End If No need to handle a different event. You have access to everything. Upvote 0
Correct way to use Msgbox2: B4X: Msgbox2("Msg", "Do you want to do delete document?", "Title", Array ("Yes", "No")) Wait For Msg_Click (ButtonText As String) If ButtonText = "Yes" Then 'delete document End If No need to handle a different event. You have access to everything.
moore_it Well-Known Member Licensed User Longtime User Sep 26, 2017 #3 Thank you erel, I hadn't thought about wait for ! Upvote 0