Specifications

Section 9. Program Control Instructions
9-14
though Scan is used to signify the start of a scan in a slow sequence. In
SlowSequence, the measurements are stored in a single buffer. Processing
of this buffer is completed before the NextScan measurements are made.
Count
Integer
The number of times to execute the Scan/NextScan loop. Enter 0 for infinite
looping.
SelectCase … EndSelect
Executes one of several statement blocks depending on the value of an
expression.
Syntax
SelectCase testexpression
[Case expressionlist1
[statementblock-1] ]
[Case expressionlist2
[statementblock-2] ]
[CaseElse
[statementblock-n] ]
EndSelect
The Select Case syntax has these parts:
Part Description
SelectCase Begins the SelectCase decision control structure. Must
appear before any other part of the SelectCase structure.
testexpression Any numeric or string expression. If testexpression matches
the expressionlist associated with a Case clause, the
statementblock following that Case clause is executed up to
the next Case clause, or for the final one, up to the
EndSelect. Control then passes to the statement following
EndSelect. If testexpression matches more than one Case
clause, only the statements following the first match are
executed.
Case Sets apart a group of CRBasic statements to be executed if
an expression in expressionlist matches testexpression.
expressionlist The expressionlist consists of a comma-delimited list of one
or more of the following forms.
expression
expression To expression
Is compare-operator expression
statementblock
Elements statementblock-1 to statementblock-n consist of
any number of CRBasic statements on one or more lines.
CaseElse Keyword indicating the statementblock to be executed if no
match is found between the testexpression and an
expressionlist in any of the other Case selections. When
there is no CaseElse statement and no expression listed in