Difference between revisions of "Zbex run and stop statements"

From CCARH Wiki
Jump to navigation Jump to search
(added chapter navigator at bottom of page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The last statement in an Zbex program must be the <tt><b>run</b></tt> statement.  The program will compile but will not run without this statement.  Any code or text below (after) the run statement in a file or in a window will be ignored. 
 
 
You can cause your program to terminate at any location with the <tt><b>stop</b></tt> statement.  The compiler automatically compiles a stop statement before the run statement and before any procedure statement.  This prevents program control from entering a procedure by accident.
 
 
 
 
 
{{ZbexChap
 
{{ZbexChap
 
   | before = [[Zbex assignment statements|Assignment statements]]  
 
   | before = [[Zbex assignment statements|Assignment statements]]  
 
   | after = [[Zbex input and output|Input and output]]  
 
   | after = [[Zbex input and output|Input and output]]  
 
}}
 
}}
 +
The last statement in an Zbex program must be the <tt><b>run</b></tt> statement.  The program will compile but will not run without this statement.  Any code or text below (after) the run statement in a file or in a window will be ignored. 
 +
 +
You can cause your program to terminate at any location with the <tt><b>stop</b></tt> statement.  The compiler automatically compiles a stop statement before the run statement and before any procedure statement.  This prevents program control from entering a procedure by accident.

Latest revision as of 15:10, 15 October 2010

Previous chapter
Assignment statements
Zbex
Manual
Next Chapter
Input and output

The last statement in an Zbex program must be the run statement. The program will compile but will not run without this statement. Any code or text below (after) the run statement in a file or in a window will be ignored.

You can cause your program to terminate at any location with the stop statement. The compiler automatically compiles a stop statement before the run statement and before any procedure statement. This prevents program control from entering a procedure by accident.