qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Illegal number
You have used a number that is inappropriate for the
context in which it is used. For example, QBasic does not
allow you to declare a fixed-length string of zero length,
so DIM X AS STRING * 0 is illegal. An illegal number also
occurs if you declare contradictory values. For example,
using an integer data type declaration suffix with a
floating-point number (for example, 10.20%) causes this
error.