07.05.2015 Views

Bronze Edition Guide - True BASIC

Bronze Edition Guide - True BASIC

Bronze Edition Guide - True BASIC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

D. Explanations of Error Messages 199<br />

Unknown variable.<br />

You are using OPTION TYPO to check for spelling mistakes, and it has found a variable<br />

name that you haven’t declared anywhere. If <strong>True</strong> <strong>BASIC</strong> has found a typing mistake, just<br />

correct the spelling. Otherwise, add a LOCAL statement that lists this variable, or include<br />

the variable in its correct DECLARE PUBLIC or SHARE statement.<br />

VAL string isn’t a proper number. (4001)<br />

You’ve called the Val function, but the string you gave doesn’t properly represent a number.<br />

What? (Please type HELP or select the menu item: HELP for <strong>True</strong> <strong>BASIC</strong>)<br />

You’ve typed a command that <strong>True</strong> <strong>BASIC</strong> doesn’t understand. If you want further help<br />

from the computer, just type HELP in the command window or use the Help menu for more<br />

instructions. When the HELP window appears, choose COMMANDS from the topics list.<br />

(Also, see Appendix F for more about the HELP facility.)<br />

Window minimum = maximum. (-11001)<br />

You’ve executed a SET WINDOW statement that sets the vertical or horizontal window<br />

maximum equal to the minimum. <strong>True</strong> <strong>BASIC</strong> doesn’t allow this, as it wouldn’t let you see<br />

anything in that window. Remember that the order of edges for the SET WINDOW command<br />

is left, right, bottom, top.<br />

Wrong number of arguments.<br />

A function, subprogram, or picture was called with the wrong number of arguments.<br />

Wrong number of dimensions.<br />

You’re trying to use an array, but have given the wrong number of dimensions. Check this<br />

use against the array’s DIM statement, and make sure that both have the same number of<br />

subscripts. If you’re passing an array to a routine, check the routine’s parameters.<br />

Remember that a two-dimensional array must be indicated as A(,) in the parameter list, a<br />

three-dimensional array by A(,,) and so forth.<br />

Wrong type.<br />

You’re trying to use a string where a number is needed, or a number where a string is needed.<br />

Check to make sure you’re not trying to assign a number to a string variable, or vice versa.<br />

Remember, too, that string concatenation is written using an ampersand (&) in <strong>True</strong> <strong>BASIC</strong>,<br />

and not a plus sign (+).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!