Android Question Sleep(0) unexpected side effects, instead of DoEvents

MitchBu

Well-Known Member
Licensed User
Longtime User
In my code, I have this loop, which runs until the user has entered his name and password:


B4X:
Do While DialogComplete = False
        DoEvents
    Loop

Immediately after that, I fill the menus. But I don't want that before the proper login has taken place.
Following recommendations, I replaced DoEvents by Sleep(0).

As a result, the menu loads prematurely, and more intriguing, the box of a checkbox turns green.

DoEvents will remain.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…