|
Qbasic Tutorial for beginners and children (Under Construction) |
BUGS caused by Misspelled variablesOne of the most common bugs in BASIC programming is misspelled variable names. I often encountered the following mistakes while teaching BASIC to beginners:
Unfortunately, apart from checking whether your variable was correctly written, we can't do much to prevent these types of mistakes. However if you are working in VBDOS, use the OPTION EXPLICIT statement to force all variables to be declared. The program will tell you that variable "lenght" has not been declared, giving you the opportunity to correct your mistake. |
|
|