stop — Stop program execution.
stop( : : : )
stop operator stops the continuous program execution of the
If this happens the
PC remains on the
(instead of being placed at the next executable program line)
in order to show directly the reason for the program interruption even
if numerous comments or other not executable program lines follow.
The operator is equivalent to the
Stop action (F9)
in the menu bar.
The program can easily be continued by the
Run action (F5).
It is possible to redefine the behavior by setting a time parameter in the preferences dialog. The execution will not stop but continue after waiting the specified period of time. Within this period of time the program can be interrupted by F9 or continued by one of the run commands. This is marked by an icon in the first column of the program window.
This operator is not supported for code export.
read_image (Image, 'fabrik') regiongrowing (Image, Regions, 3, 3, 6, 100) count_obj (Regions, Number) dev_update_window ('off') for i := 1 to Number by 1 select_obj (Regions, RegionSelected, i) dev_clear_window () dev_display (RegionSelected) stop () endfor
If the program stops at a
stop statement, the return state
of the previous operator is kept.
If the program is continued with the
stop always returns 2 (H_MSG_TRUE).