Appendix A. CRBasic Programming Instructions
Syntax
PulseCountReset
A.4 Program Control Instructions
A.4.1 Common Program Controls
BeginProg / EndProg
Marks the beginning and end of a program.
Syntax
BeginProg
[program code]
EndProg
Call
Transfers program control from the main program to a subroutine.
Syntax
Call subname (list of variables)
CallTable
Calls a data table, typically for output processing.
Syntax
CallTable(TableName)
Delay
Delays the program.
Syntax
Delay(Option, Delay, Units)
Do / While / Until / Exit Do / Loop
Repeats a block of statements while a condition is true or until a condition
becomes true.
Syntax
Do [{While | Until} condition]
[statementblock]
[ExitDo]
[statementblock]
Loop
-or-
Do
[statementblock]
545