I just upgraded from an older version of B4A. I have a very large IF statement and it would not compile in debug mode, but it does compile in release mode. It gave me many warnings about DoEvents, so I replaced all DoEvents with Sleep(0) and now it does not compile. It gives me the following error:
B4A Version: 7.30
Parsing code. (0.55s)
Compiling code. Error
Error compiling program.
Error description: Cannot return values from this sub.
Error occurred on line: 7446
Return True
Word: return
However it compiles and runs fine using DoEvents. I used Return True to exit from the sub, maybe I should be using something else?
B4A Version: 7.30
Parsing code. (0.55s)
Compiling code. Error
Error compiling program.
Error description: Cannot return values from this sub.
Error occurred on line: 7446
Return True
Word: return
However it compiles and runs fine using DoEvents. I used Return True to exit from the sub, maybe I should be using something else?