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
1
vote
1 answer

A new QBASIC IDE, (21st century one)

I'm looking for a modern IDE/Compiler that supports QBASIC programs and has the same or almost similar syntax as of QBASIC. I want to stay as close to Qbasic as possible in terms of syntax, style, and flow. No windowed-based / visual-style languages…
unnatixlr8
  • 57
  • 1
  • 2
1
vote
6 answers

Is there a BASIC command to count the number of characters in a string?

I couldn't find any. Is there one? Google didn't help me, because it's case insensitive and thinks I am looking for "basic" commands.
1
vote
1 answer

Betrieve access to data without DDF

I would need help to access data from Betrieve files. Persasive ODBC driver need a DDF file that define the "schema" for each table, my problem is that DDF file not exist. The QBasic code that I should migrate to C#, make a substring functions and…
1
vote
3 answers

QBasic - How to find this value?

If we have M as follows: M = 1+2+3+5+6+7+9+10+11+13+...+n What would be the QBasic program to find M. I have done the following so far, but is not returning me the expected value INPUT "ENTER A VALUE FOR N" SUM = 0 FOR I = 1 TO N IF I MOD 4 = 0 SUM…
Simplicity
  • 47,404
  • 98
  • 256
  • 385
1
vote
1 answer

printing to usb QW BASIC/ QUICK BASIC

I am looking to convert GW BASIC/ QUICK BASIC programs to an auto executable files (exe) so I can run these programs on windows 7 pro 64bit/ windows 8 pro. But these programs prints from LPT1 port. I would like it to revert to USB as non of new…
Yogesh R.L
  • 609
  • 7
  • 17
0
votes
1 answer

Issue running program in DOS 5.02

We are trying to run certain .exe programs on a IBM 486 running DOS 5.02 to make sure they are backwards compatible. When attempting to compile an QBasic 4.5 program with BC.EXE we get the following error and would like to know how to solve…
eoredson
  • 1,167
  • 2
  • 14
  • 29
0
votes
1 answer

Number required for function error in qb64

I am writing a qb64 / QBasic software program to convert a numerical grade 0-100 to a letter grade (a,b,c,d,f). I have set it up so that strings/arrays are used to allow infinite grades to be entered. However when I try to calculate the letter grade…
Ian L
  • 1
0
votes
0 answers

Event listener not updating variable in while loop

I'm currently working on a project where I'm trying to run some QBasic code on a webpage. I transpiled it to JavaScript and I wrote some helper functions to replace functions in QBasic. Specifically, there's this function INKEY$ that returns the…
mgoldy925
  • 26
  • 2
0
votes
1 answer

Cannot understand why my QBASIC program is returning an 'inf' output

I'm starting to learn QBASIC for while, but the first test is something I can't understand fully... There is a part about the y variable which is returning "inf" and I can't understand WHY...I searched up that in Google but its just showing "#inf"…
0
votes
1 answer

qbasic version of PHP serialize/unserialize

I can't find this anywhere. I have some old basic programs I am working on (thanks to qb64 that came out, now they work on winxp - win7) in order to serialize (like php) I need to know how this process works so that i can convert BASIC do it. it…
Cain
  • 27
  • 1
  • 2
  • 9
0
votes
1 answer

Set cursor in QB45

I have been using the following code to change the cursor in QB45: SUB LocateX(Inserting) ' locate cursor IF Inserting THEN ' half-block cursor Locate Xcoor, Ycoor, 1, 3, 7 ELSE ' underline cursor Locate…
Azathoth
  • 105
  • 1
  • 9
0
votes
0 answers

how to solve subscript out of range in qbasic

I am in big problem in solving a code essential for me, and I need the solution as soon as possible in fact, I have little knowledge of programming in basic I have a problem with this code. I have an equation, and I use this code to solve this…
0
votes
2 answers

How to know if the entered letter is a vowel or a consonant

CLS INPUT "enter any letter"; a$ b$ = UCASE$(a$) SELECT CASE b$ CASE "a", "e", "i", "o", "u" END SELECT IF c$ = b$ THEN PRINT "Vowel" ELSE PRINT "consonant" END IF END
0
votes
1 answer

Subscript out of range in qbasic loop of fibonacci series

declare function fibo() CALL fibo END SUB fibo () n(1) = 1 n(2) = 1 PRINT n(1); n(2) FOR i = 3 TO 10 s(i) = n(i - 1) + n(i - 2) PRINT s(i) NEXT END FUNCTION
0
votes
0 answers

How to get comm port addresses from BIOS in QB45

I have been using the following code to get comm port addresses from BIOS in QB45: PRINT "Hex addresses for ports 0 to 3 from BIOS." DEF SEG = 0 FOR x = 0 TO 3 z = &H400 + x * 2 p = PEEK(z) q = PEEK(z + 1) a = q * &H100 + p PRINT…
Azathoth
  • 105
  • 1
  • 9