You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting the issue @afbytes! I've added it to the list for the next release. You can see the list of what is being worked on next on the Roadmap page in the wiki.
Hi @afbytes, this issue has been resolved as of 0.6.0. The input method will now convert the entered value to the appropriate type. At present it is still required to declare your variables for this to work properly. Support for implicit variable declaration is planned for a future release. The following will now work as expected:
DIM x
INPUT"Enter a number: ", x
x = x +5PRINT"X is now: "; x
The results of running the following piece of code on QBasic and QBJS are different.
Regards to QBasic,
x
as a number instead of a string;x$
, then it will accept a string.Redo from start
and ask you to input again;Regards to QBJS,
x
as a string;abc5
.This issue may be related to #33.
The text was updated successfully, but these errors were encountered: