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
0
votes
2 answers

How do I fix the error "subscript out of range" in QBASIC?

I'm trying to create a code that generates random numbers within the range 10-30 but making sure that no number is repeated. It shows "subscript out of range" on NumArray(Count) = Count when I run the code. 'Make an array of completely sorted…
0
votes
1 answer

Is there a special formula for permutation

Who can help me out with a QBASIC CODE to find the permutation of a given number. I'd really appreciate. I've tried writing some codes but it's not giving the required answer.
0
votes
1 answer

Qbasic code to solve for the permutation of a given number

Write a QBASIC to Solve find the permutation of a given numbers. I've tried this in a Qbasic compiler Input n Input r P = n! / (n - r)! Print p
0
votes
1 answer

Developing for android with QBASIC?

I have read that you can make programs for android with qbasic. Is it possible and if it is does anyone know how I can do it?
0
votes
0 answers

How to connect two pc's for variable transfer using QBASIC

Does anyone know/have the code for connecting two pc's for variable transfer in qbasic? Using the _OPENHOST , _OPENCLIENT , and _OPENCONNECTION.
0
votes
2 answers

How can I send variables over the internet on QBasic?

I'm making a little multiplayer retro game in QBASIC (QB64). I need to send some integers from one player to the other. Does anyone know how I can do it and who can maybe give me the source code?
0
votes
1 answer

Setup for qbasic in Windows

How to make setup for qbasic or any basic programming language in windows system for school class?
Baharul
  • 145
  • 2
  • 16
0
votes
1 answer

how can i fix this syntax error in QBASIC about READ DATA

This is my code INPUT "what year right now : ", thn1 CLS thn2 = thn1 num = 0 PRINT "No Jenis Kelamin Tanggal Lahir NPM Nama" 10 READ jk$, tgl$, thl, npm$, nma$ IF jk$ = "0" THEN END thn1 = thn2 thn1 = thn1 - thl IF jk$ = "L" OR…
0
votes
3 answers

does 8250 uart require to match modem baud

I am studying modem i/o and am setting the uart through com1: and the base address x03f8 and am wondering if the uart connection to the modem must be equal? I am doing this in QB64.
user9617746
0
votes
0 answers

Length of titlebar overrun in QB64

Need to know the length of titlebar in QB64 before it overruns length? I am using S$ = "Title" _TITLE S$ where I need to truncate it before displays "..." thanks.
eoredson
  • 1,167
  • 2
  • 14
  • 29
0
votes
2 answers

a = "stackoverflow" does not work in QBasic

The qbasic code returns a type mismatch error. a="StackOverflow" print left$(a,5) print right$(a,8) What is the cause of this error and how can I rectify it?
user9104738
0
votes
1 answer

Triple quotes required on command line in QB64

Have a program which parses the command line in QB64. The COMMAND$ function returns the command line. I need to parse a long filename which might contain a space by parsing it from within quotes to differ from a filename with no space. For example,…
eoredson
  • 1,167
  • 2
  • 14
  • 29
0
votes
1 answer

QBASIC adding a parameter to a SHELL

Using QBASIC: Performing SHELL action: SHELL TMP$ (where TMP$ = C:\test1.exe) but need to pass 1 parameter (a File name) to the test1.exe...jnh999
Jack H
  • 21
  • 1
0
votes
3 answers

why is it running the very next line

when you get eaten, destroyed or you attack, it always runs the next line of script, for instance, you destroy the monster, but then it prints you were eaten and you got a potion but should just say you killed the monster and earned the potion.…
0
votes
1 answer

WideCharToMultiByte in QB64

Am having problems converting from ANSI to Unicode and back. The following code snip describes what I am doing. I am getting 0x57 errors.. DECLARE DYNAMIC LIBRARY "kernel32" FUNCTION MultiByteToWideChar& (codePage~&, dwFlags~&, lpszMbstring$,…
eoredson
  • 1,167
  • 2
  • 14
  • 29