
10-2
2000-OSM, F1
•
The maximum number of programs allowed is 8.
In each program,
•
the maximum number of source program lines allowed is 50;
•
the maximum number of variables allowed is 49;
•
the maximum number of characters allowed in a string is 255;
•
the maximum number of FOR...NEXT statements allowed is 11;
•
the maximum number of nested GOSUB statements allowed is 10;
•
an equation cannot be more than 25 variables in length.
Vista BASIC Line Format
Vista BASIC program lines are contained in the Text Fields of edit lines and have the following
format:
[nnnnn] statement[: statement...]
Where "nnnnn" is the optional statement number in the range 1 through 65535. The statement
number is only required when it is the destination of a GOTO or GOSUB.
Where the statement is a valid Vista BASIC statement, a line may contain more than one statement
separated by colons (:). A statement can span more than one line by using a continuation character
(:) in the first column of the continuation line.
Character Set
Character
Usage
_ underscore
Identifiers
= equal sign
Assignment and Relational Operator
+ plus sign
Addition Operator
- minus sign
Subtraction Operator and Unary Negation
* asterisk
Multiplication Operator
/ slash
Division Operator
( left parenthesis
Delimiter
) right parenthesis
Delimiter
> greater than
Relational Operator
< less than
Relational Operator
, comma
Argument Separator
: colon
Statement Separator/Continuation Character
. period
Decimal Point
“ quotation mark
String Delimiter
% percent sign
Integer Type Declaration
$ dollar sign
String Type Declaration
! exclamation point
Single Precision Type Declaration
Constants
Integer Constants:
Integer constants are whole numbers between -32768 and 32767,
inclusive. A decimal point indicates a floating point constant and is not allowed in
integer constants. Negative values are produced with the unary negation operator (-).
Floating Point Constants:
A floating point constant is a number that contains a decimal
point and must have a digit or unary negation operator for the first character. Floating
point constants are of two forms: fixed point form and exponential form. Fixed point
constants must have a leading digit and decimal point somewhere within the number.