You cannot break out of FOR/WHILE/DO loop easily as has been discussed in the 'suggestions' forum. We hope that e.g. EXIT FOR will be included in one of the enxt releases.

However, you can reorganize your loops in such a way as to check for some kind of abort event
code:
$abort=0
$start=1
$stop=10
while $start<$stop or not $abort
$start=$start+1
; check 'STOP' button status and set $abort to 1 if pressed
loop

_________________________
There are two types of vessels, submarines and targets.