ClassesClasses | | Operators

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

stopstopStopStop (Operator)

Name

stopstopStopStop — Stop program execution.

Signature

stop( : : : )

Herror stop()

Herror T_stop()

void Stop()

static void HWindow::Stop()

static void HOperatorSet.Stop()

static void HWindow.Stop()

Description

The stopstopStopStopStop operator stops the continuous program execution of the HDevelop program. If this happens the PC remains on the stopstopStopStopStop statement (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.

Attention

This operator is not supported for code export.

Example (HDevelop)

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
  RegionSelected := Regions[i]
  dev_clear_window ()
  dev_display (RegionSelected)
  stop ()
endfor

Result

If the program stops at a stopstopStopStopStop statement, the return state of the previous operator is kept. If the program is continued with the stopstopStopStopStop operator, stopstopStopStopStop always returns 2 (H_MSG_TRUE).

See also

exitexitExitExitExit

Module

Foundation


ClassesClasses | | Operators