Try passing the -h switch to QBASIC on the shortcut properties. The -h switch makes the QBAISC window come up in "high resolution", more than likely why you deal with line counts greater than 24 in class.
Keep in mind, QBASIC is OLD, and was designed and quite popular when the maximum resolution in a CLI (Command Line Interface) was 80x24 (80 characters wide, by 24 characters high).
The reason LOCATE 22, 24 crashes without the -h switch is because line 24 is technically not on the screen.
indienick
Junior Poster in Training
71 posts since Aug 2005
Reputation Points: 23
Solved Threads: 2