Questions tagged [qbasic]

QBasic is a general-purpose interpreted programming language derived from QuickBasic 4.5. QBasic replaced GWBasic starting from MSDOS 5. It became popular, because it had a quite advanced IDE with a debugger and was delivered free with MSDOS, Windows 95 and 98. The well-known game 'Nibbles' was written in QBasic. QBasic was written by Paul Allen (Microsoft) in 1991. Also see [tag:quickbasic]

QBasic replaced GWBasic starting from MSDOS 5. It became popular, because it had a quite advanced IDE with a debugger and was delivered free with MSDOS, Windows 95 and 98. The well-known game 'Nibbles' was written in QBasic. QBasic was written by Paul Allen (Microsoft) in 1991.

You are able to make some code samples for your questions via Repl.it online interpreter for QBasic

Also see

178 questions
5
votes
1 answer

Quick Basic Colon Line Separator

I am working on some old qbasic code. It's a mess with all the Goto statements. Am I correct that the following line will always return? IF FLAG = 0 THEN TARGET = X: GOSUB 55000: TEMP = XI - TEMP2: RETURN So if I understand this correctly the…
Seth Hays
  • 311
  • 2
  • 11
4
votes
1 answer

Invalid variable name error in QB64 with old QuickBasic code

I am trying to run a QuickBasic file written by someone else in 1992. I am using QB64 on a Windows 10 machine. I get an error message that says Invalid variable name in line 26 of the following code. Lines 1-31 are below, but here is line 26 in…
Mark Miller
  • 12,483
  • 23
  • 78
  • 132
4
votes
5 answers

How to test if a directory exist in qbasic?

I'm writing a program in Qbasic. I'd like to know how to test if a folder exists. The idea is: IF "c:\user\basic\blablabla\" exists (?? how to programm the "exist" test?) THEN CHDIR "c:\user\basic\blablabla\" ELSE MKDIR…
manny-
  • 129
  • 2
  • 10
4
votes
2 answers

Quick Basic Decompilation

We are looking for quick basic decompiler. The program is very old, written in DOS now we wish to enhance that code in Windows with additional functionalities. Unfortunately the developer is not traceable and only hope is decompilation. Please…
4
votes
1 answer

How Could One Write This Basic PAINT Statement in JavaScript?

In BASIC there is a command called PAINT that looks like this: PAINT (column, row), color, color-stop It takes x/y coordinates as a starting place and begins filling it and the surrounding pixels in with color until it reaches the color defined in…
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136
4
votes
2 answers

What does ON do in QBasic?

I have been working on a project, in which I take an old program and create a new version of it .... The thing is that it is written in Quick Basic and it has a line of code that I don't understand ON FLAG% GOTO 1730, 1900 Can anyone tell me what…
sheach
  • 65
  • 11
4
votes
6 answers

What kind of BASIC is this?

I fully expect downvotes, but this got me really curious, and I hope at least someone can answer. Our discrete mathematics professor really likes old languages for the plethora of bitwise operators they provide. Now, he gave us a homework which was…
user3079266
3
votes
2 answers

ATN from QBasic to VB.Net

I am currently translating a program from QBasic to VB.Net and I have this line of code : RSA = 270 + 180 / PI * (ATN(ABS(X(Z, 2) / X(Z, 1)))) I translated it as RSA = 270 + 180 / PI * (Math.Atan(Math.Abs(arrayX(z - 1, 2 - 1) / arrayX(z - 1, 1 -…
Holytoutant
  • 51
  • 1
  • 6
3
votes
1 answer

Converting Quick BASIC to VB.Net - Random Access Files

I'm trying to convert an old Quick BASIC program to VB.Net. There doesn't appear to be any direct replacement for the old file statements. Building a database seems like overkill for my simple needs. How can I do the following in VB.Net? OPEN…
3
votes
0 answers

Limiting the .Net console buffer output area - .Net equivalent of Qbasic's VIEW PRINT statement

Many years ago I used to code in QBasic which had a handy statement - VIEW PRINT (details here) - and it would restrict the console output buffer to a specific clipped area in the console. Console output was displayed and would scroll previous…
Nathan Ridley
  • 33,766
  • 35
  • 123
  • 197
3
votes
4 answers

qbasic how to pass array and variables to a function/subroutine?

How can I pass the deck(52) array from the Newgame function to the deckshuffle function FUNCTION newgame 'New game RANDOMIZE TIMER CALL cardsuit 'heart$ = CHR$(3): diamond$ = CHR$(4): club$ = CHR$(5): spade$ = CHR$(6) quitgame = 0 …
3
votes
1 answer

How to Reverse Engineer QuickBasic Application?

I have an application written in QuickBasic (a game). I own the rights to it, but didn't write the original code. I have the source code in front of me, but I'm banging my head a bit in trying to make sense of it all. Are there any ways to make…
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136
3
votes
1 answer

QBASIC and Python : floating point number formatting/rounding off issue

We are trying to convert some qbasic scripts into python scripts. The scripts are used to generate some reports. Generally the reports generated by qbasic and python scripts should be exactly same. While generating a report we need to format a…
RJ Anoop
  • 763
  • 13
  • 26
3
votes
2 answers

Understanding the steps in making a counter for each letter when a sentence is inputed

I have an example of a program that shows how to set up a counter for how many times each letter of the alphabet was used. I don't understand the syntax of the middle portion of the program. LET letter$ = MID$(sentence$, LETTERNUMBER, 1) I have…
3
votes
2 answers

Neural network with linear activation function and feed forward from input layer to a single output layer

Enter code here`as crappy a programmer i am, with slight dyslexia, i need every thing code based witten in such a stupid way that even child can understand it. I try to understand how to get input layer into output layer using feed forward but…
1
2
3
11 12