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

To convert upper case to lower case of same word in qbasic

Hi there i want to get idea or code for converting uppercase into lowercase and lowercase into uppercase of same word for eg: convert StAcKOVERfloW to sTaCkoverFLOw please can any one give me idea or the code for qbasic programming language
0
votes
1 answer

Grammar parser suggestion (ANTLR)

Well I'm trying to write a simple QBasic grammar on Antlr4. And 'Else-If' loop won't works correctly, it automatically converts to assigncommandafter THEN. And could you review my grammar, is there any improvements? How to write an string in…
nooogii
  • 25
  • 4
0
votes
3 answers

CreateDir throws exception in QB64

I have the following code that sometimes returns an error when trying to create a new directory. Sometimes when that directory doesn't exist, it throws an error and does not create the directory. I would like to know why? DECLARE DYNAMIC LIBRARY…
eoredson
  • 1,167
  • 2
  • 14
  • 29
0
votes
1 answer

Developing a syntax for a language i'm thinking about designing

I'm thinking about desiging a language similar to qbasic in syntax but even simpler so that a new programmer can learn some programming without being discouraged by something like C,C++, or C#. For example, use Write "Hello World" instead of PRINT…
RCProgramming
  • 452
  • 3
  • 14
0
votes
1 answer

How to declare any-range string element inside an user-defined type in QBasic?

I'm learning QBasic and found an user-defined type example code in a documentation. In this example there's a string element inside an user-defined type, and that string doesn't have a length defined. However my compiler throws the exception…
user5066707
0
votes
2 answers

How to save names in a Qbasic file?

I am trying to create a program in Qbasic wherein a person can enter their name and label themselves as admin or unwanted user. How do I save these preferences in my program?
Ant Palmer
  • 21
  • 1
0
votes
1 answer

What is use of exclamation mark(!) in this qbasic programming?

DECLARE SUB cube(!) INPUT "Enter a length";l CALL cube(l) END SUB cube(l) area=6*l^2 PRINT "Area of a cube",area END SUB
Binod Thakur
  • 53
  • 1
  • 6
0
votes
1 answer

QBASIC programming confusion

I've just created a text to speech converter using this programming language. The code is, DO CLS PRINT "This is the program built by Adhikari Newtorks Team Using QBASIC..........." PRINT "This is a text to speech converter.." …
Sugam Adhikari
  • 131
  • 1
  • 1
  • 6
0
votes
1 answer

qbasic how to exit the loop after a specified time?

cls do keyed$=inkey$ loop until keyed$<>"" print"the hello world" end so in this program as you have seen until a press a key in the statement "keyed$=inkey$" the program wont display the hello world. so i want such a statement or program which…
samrat luitel
  • 53
  • 1
  • 8
0
votes
1 answer

QBASIC _PALETTECOLOR problems

Im trying to change the color of the console (WHICH IS POSSIBLE!) with this code: COLOR 7 PRINT "Color 7 is gray" K$ = INPUT$(1) _PALETTECOLOR 7, &HFFDAA520 ' FF alpha makes the color translucent PRINT "Color 7 is now Goldenrod in SCREEN 0! However…
Roke
  • 300
  • 1
  • 6
  • 27
0
votes
1 answer

Cannot Figure out the error with my code(Qbasic 64bit)

I am learning to program in Basic as course in my high school. I have learned some C++ before programming started in school. I was writing a TELEPHONE DIRECTORY program that WRITES to or READS FROM the "Records.dat" File. When I run the program, and…
0
votes
2 answers

Why is the sum of INT(RND*100)+1 always equal to 0? _QBasic

I'm writing a guessing game in QBasic , which kind of tells you that im not to this, and every time I run the code the rndnum is always 0. what should i change?
0
votes
1 answer

Qbasic interpreter for cpp

I like to embed QBasic or some subset of VBscript alike script in cpp app . is there any such thing ?
user63898
  • 29,839
  • 85
  • 272
  • 514
0
votes
1 answer

free basic compiler error 23: File not found, libsupc++.a

I am trying to compile a simple a hello world QBASIC program in ubutu 12.04. Compiler is downloaded and installed as instructed here. http://www.freebasic.net/get Also I posted it on askubuntu.com…
Yogesh R.L
  • 609
  • 7
  • 17
0
votes
1 answer

Visual Basic equivalent to QBasic's Draw statement

Is there a Visual Basic (or even .NET or C++) equivalent to or implementation of GW-BASIC and QBasic's DRAW statement? I have a very old program that outputs drawings as strings in the DRAW statement's format, and would like to render them in a…
Peter
  • 2,654
  • 2
  • 33
  • 44
1 2 3
11
12