There seems to be a problem when using If … Then Wait For on one line:
This code results in the following error: "Undeclared variable 'wait' is used before it was assigned any value."
The following version works fine:
B4X:
Private x As Int = 4
If x < 5 Then Wait For SecondSub_Complete
This code results in the following error: "Undeclared variable 'wait' is used before it was assigned any value."
The following version works fine:
B4X:
Private x As Int = 4
If x < 5 Then
Wait For SecondSub_Complete
End If
Last edited: