B4J Question access button click in inline java code?

Patent

Member
Licensed User
Longtime User
dear community,

how could i access a b4j gui - button state in a inline java code?
or, mybe better because its a heavy loop, access a global var. and exit then the loop?

thanks a lot
patent
 

Patent

Member
Licensed User
Longtime User
i am doing a walk through the file tree!
its for filesearching and it runs very quick and relyable.

i trieed it now with a global var. to exit the loop and it works fine.
i missed the underscores in my var, but now it works.
_main._breaking for instance.
(the inline code is running in a second thread and fills a list like a squirrel, so the gui is full responsible and i could break at every time i want with no troubles)

how could i acces the button from inline?
 
Upvote 0

Patent

Member
Licensed User
Longtime User
i see. ok. thank you.

so the solution with a helper variable is working fine also in my case.
 
Upvote 0
Top