B4J Question STOP PROCESS

MODERN TALKING

Active Member
Licensed User
Longtime User
Hi guys,

Is there any way to do a PROCESS INTERRUPT when the B4J App in on a Loop?

Like a "listener" function and when we press "ESC" or some combination - the App stops the process - like a BREAK

Really appreciate any pointers
 

stevel05

Expert
Licensed User
Longtime User
You need to set up a Global variable and monitor it in the loop and Monitor the keypresses for the combination you want and set the variable if they are pressed.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
If it's a long running process then it will also lock the gui, you may need to run it on a different thread or add a sleep statement. It really depends on what it's doing.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…