Skip to content
QBASIC - a problem
Profile icon
mrsd

I would like to use repl.it to teach my students to code in QBASIC, but there is a problem. Your interpreter does not do the variable names correctly. In QBASIC, character or string variable names are followed by a $, while numeric variables have no $. Your variable names make no such distinction. Your variables are all the same, and can hold any value. They follow javascript rules, which is incorrect.

In QBASIC if you attempt to input characters into a numeric variable, the value is automatically 0.

Can you change this? or do I have to adapt to teaching BASIC that works like Javascript?

You are viewing a single comment. View All
Profile icon
timmy_i_chen

Ah, we use qb.js - so it may indeed have these inconsistent bugs. If they can fix it, we can update it on our end, but barring that, there's not much we can do. Sorry. :(