Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X") 'Option 1
Dim sf As Object = xui.Msgbox2Async("Delete file?", "Title", "Yes", "Cancel", "No", Null) 'Option 2
Wait For (sf) Msgbox_Result (Result As Int)
If Result = xui.DialogResponse_Positive Then
Log("Deleted!!!")
End If
End Sub
XUI Views is a b4x library (https://www.b4x.com/android/forum/threads/100383/#content). The same b4xlib library is compatible with B4A, B4i and B4J It is a collection of custom views and dialogs. Everything is written in B4X. The source code is included inside the b4xlib file, which is a zip...
OMG. Why is finding a simple library so difficult here? Files are all over the place in forums?
I went to look at your suggestion for XUI views, but no where on that page can you d/l that library.
By the way, thanks for helping me.
the keyword is either sleep(1000) for a pause of 1sec in the execution, or wait for will pause the execution until a condition is met!
these are part of the resumable subs structure.
the best would be for you to present a small project with what you intent to achieve, or post some of the relevant code you have going so that we can advise better
You can check this tutorial for further info about resumable subs
New video tutorial: Resumable subs is a new feature added in B4J v5.50 / B4i v4.00 / B4A v7.00. It dramatically simplifies the handling of asynchronous tasks. (This feature is a variant of stackless coroutines.) The special feature of resumable subs is that they can be paused, without...
1. Moved to the questions forum.
2. MsgboxAsync is an internal keyword. It has nothing to do with the Dialogs library.
3. As @Mariano Ismael Castro wrote, it is better to use XUI.MsgboxAsync which behaves exactly the same but is cross platform.