W WardOperationsLLC Member Licensed User Longtime User Oct 11, 2023 #1 Code: Copy MsgboxAsync("This app requires an internet connection"&CRLF&"Please check your connection and restart the app.", "No Internet Connection!") tmrCon.Enabled=False Wait For MsgBox_Result (Result As Int) I use the above code in B4A to show a message box to the user then wait for them to acknowledge it before the code continues. However that doesn't seem to be an option in B4I. Both the descriptions of Msgbox and Msgbox2 say it won't block the code. Is there a way to achieve this in B4I?
Code: Copy MsgboxAsync("This app requires an internet connection"&CRLF&"Please check your connection and restart the app.", "No Internet Connection!") tmrCon.Enabled=False Wait For MsgBox_Result (Result As Int) I use the above code in B4A to show a message box to the user then wait for them to acknowledge it before the code continues. However that doesn't seem to be an option in B4I. Both the descriptions of Msgbox and Msgbox2 say it won't block the code. Is there a way to achieve this in B4I?
Solution William Lancee Oct 11, 2023 There is a cross-platform version (xui.) of asynchronous msg boxes. https://www.b4x.com/android/forum/t...age-me-page-does-not-close.143477/post-909406
There is a cross-platform version (xui.) of asynchronous msg boxes. https://www.b4x.com/android/forum/t...age-me-page-does-not-close.143477/post-909406
William Lancee Well-Known Member Licensed User Longtime User Oct 11, 2023 #2 There is a cross-platform version (xui.) of asynchronous msg boxes. https://www.b4x.com/android/forum/t...age-me-page-does-not-close.143477/post-909406 Upvote 1 Solution
There is a cross-platform version (xui.) of asynchronous msg boxes. https://www.b4x.com/android/forum/t...age-me-page-does-not-close.143477/post-909406
W WardOperationsLLC Member Licensed User Longtime User Oct 11, 2023 #3 William Lancee said: There is a cross-platform version (xui.) of asynchronous msg boxes. https://www.b4x.com/android/forum/t...age-me-page-does-not-close.143477/post-909406 Click to expand... My search skills must be getting rusty. I searched, but couldn't find that before I posted my question. Time to check that thread out and get it working. Thank you. Upvote 0
William Lancee said: There is a cross-platform version (xui.) of asynchronous msg boxes. https://www.b4x.com/android/forum/t...age-me-page-does-not-close.143477/post-909406 Click to expand... My search skills must be getting rusty. I searched, but couldn't find that before I posted my question. Time to check that thread out and get it working. Thank you.