Android Question Unexpected error "Expected non code block"

jai

Active Member
Licensed User
Longtime User
While placing a Sleep(0) statement in an otherwise working code two error messages get triggered in the Log window-
Object reference not set to an instance of object
Expected non code block

The app cannot be compiled in this condition.

upload_2019-5-25_19-46-22.png


If Sleep(0) is remmed out the problem goes away-

upload_2019-5-25_19-47-14.png


I am exploring replacing DoEvents with Sleep(0) but can't get started because of this unexpected error.
 

jai

Active Member
Licensed User
Longtime User
That does it! Thanks much for your help.

Should multiple statements on a single line be always avoided or was there something peculiar about my statements?
 
Upvote 0
Top