I'm happy to release B4J v5.50 BETA: www.b4x.com/b4j/files/beta.exe
This version adds support for resumable subs: https://www.b4x.com/android/forum/posts/498072/
This is the most important language improvement since the addition of classes in B4A v2.0.
Resumable subs make it much simpler to handle asynchronous tasks.
Additional improvements:
- Debugger improvements.
- Node_AnimationCompleted event.
Example:
This version adds support for resumable subs: https://www.b4x.com/android/forum/posts/498072/
This is the most important language improvement since the addition of classes in B4A v2.0.
Resumable subs make it much simpler to handle asynchronous tasks.
Additional improvements:
- Debugger improvements.
- Node_AnimationCompleted event.
Example:
B4X:
Sub Button1_Action
Dim left As Double = Button1.Left
For i = 1 To 5
'right
Button1.SetLayoutAnimated(100, left + 100 / i, Button1.Top, Button1.Width, Button1.Height)
Wait For Button1_AnimationCompleted
'left
Button1.SetLayoutAnimated(100, left - 100 / i, Button1.Top, Button1.Width, Button1.Height)
Wait For Button1_AnimationCompleted
Next
Button1.SetLayoutAnimated(100, left, Button1.Top, Button1.Width, Button1.Height)
End Sub