BASIC
BASIC clauses
BASIC clauses
The following BASIC clauses are available.
do clause
The optional
do
clause is used with the
loop
statement.
else clause
The
else
clause is the inline clause for the
if
statement to execute when it evaluates to false.
locked clause
The
locked
clause is used when the requested item is locked and waiting is not desired.
onerr clause
The
onerr
clause identifies the statements to execute when an error occurs during statements that perform operations on peripheral storage devices.
on error clause
The
on error
clause, which consists of the text
on error
followed by a statement list, is taken if the update fails due to a lost network connection or a
callx
that executes an
inputerr
statement.
setting clause
The
setting
clause defines the variable to receive the index results of a
get
or
locate
statement.
then clause
The
then
clause specifies which statements to execute when the conditional statement evaluates to true.
until clause
The
until
clause specifies a termination condition for a
for...next
or
loop
constructs.
while clause
The
while
clause specifies a continuation condition in a
for...next
or
loop
construct.
Related topics
BASIC
BASIC overview
BASIC functions
BASIC operators
BASIC reserved characters
BASIC statements
BASIC user exits
FlashBASIC C functions
Compiling programs
FlashBASIC modules
Using the COM interface to FlashBASIC
FlashBASIC triggers
BASIC screen utilities
O/S interoperability commands and functions