B4X FEED [SOLVED] Variable change ignored by a label's event. I'm confused...

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: [SOLVED] Variable change ignored by a label's event. I'm confused... است. این موضوع تا کنون 23 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع [SOLVED] Variable change ignored by a label's event. I'm confused...
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
23
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hello. Consider this code please:
B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
What I expect, naturally, is that as long as the mouse is kept held on the label, I'd get the "button still down" message every half second, but once the mouse button is released, it should stop. But, surprisingly, the loop continues. In other words, although the boolean variable "Working" is set to "false", the first event still treats it as "true", ignoring the change in its value.

* Log output: *
Button has been released
Button's still down
Button's still down
Button's still down
Button's still down
......

What's crazy is that the mechanism works fine when I test it in an empty project.
Any ideas what's happening here?
Thanks.

 

عقب
بالا