ID Number: Q81948
1.00
WINDOWS
Summary:
Microsoft Test TestBasic does not support implicit array dimensioning;
you must explicitly DIM any arrays you want to use in your program.
This is by design.
This information applies to Microsoft Test version 1.0 for Windows.
More Information:
One drawback of requiring explicit array dimensioning is that if you
have code such as
Print MyArray(1)
and MyArray is not declared as an array or function, then you will get
the following as output:
0 1
0 = value of implicitly dimmed variable MyArray, and 1 = the literal 1
in parentheses.
This can mean that if you misspell a function or array name, you may
get an error (as above) that may be difficult to track down.
You might also receive a "Syntax Error" message if you try to assign a
value to an implicitly DIMensioned array:
MyArray(1) = 6
This will give you an error and highlight the left parenthesis.
Additional reference words: 1.00