RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.RunError Function

Stops execution and generates a runtime error.

Pascal
procedure RunError; overload;
procedure RunError(Errorcode: Byte); overload;
C++
RunError();
RunError(Byte Errorcode);

System

In Delphi, the RunError procedure stops program execution by generating a runtime error with the given number at the current statement. Errorcode is the runtime error number (0 if omitted). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!