Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

stopstopStopStopstop (Operator)

Name

stopstopStopStopstop — Stop program execution.

Signature

stop( : : : )

Herror stop()

Herror T_stop()

void Stop()

static void HWindow::Stop()

static void HOperatorSet.Stop()

static void HWindow.Stop()

def stop() -> None

Description

The stopstopStopStopStopstop operator stops the continuous program execution of the HDevelop program. If this happens the PC remains on the stopstopStopStopStopstop 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
  select_obj (Regions, RegionSelected, i)
  dev_clear_window ()
  dev_display (RegionSelected)
  stop ()
endfor

Result

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

See also

exitexitExitExitExitexit

Module

Foundation