GW-BASIC is a dialect of the programming language BASIC developed by Microsoft in the 1980s, and was included in most versions of MS-DOS. It is similar to Microsoft/IBM BASICA, but is a fully self-contained executable.
Questions tagged [gw-basic]
41 questions
1
vote
2 answers
How to print output of .bas file to text
I am trying to print coordinate outputs of a program to a text file in order to use it in another program but I don't really know anything about GWBASIC and its my first time using MS-DOS. I need it to open a text file named plot.txt and print…

Alper Karasuer
- 13
- 5
1
vote
2 answers
Sort in GWBASIC
I work with GWBASIC but unable to figure out a simple way to sort (numbers)
I only have 4 numbers to deal with (range 150-200)
After some calculations I get these 4 numbers and I need to have them sorted in ascending order to go to the next…

Bugle24
- 51
- 4
1
vote
1 answer
How to play background sound (music) in GW-Basic
I am developing a game in GW-Basic.i want to add music to it but the problem is that i am unable to play in the background but when i add sound then first the sound is played then after that game execution is started and vICE vERSA .while i want…

Naushaad Abbas
- 73
- 2
- 6
1
vote
2 answers
How to create this gw basic program?
Ok i want to know how to make a sentence appear word by word in GW BASIC.For example if the sentence is I Am Boy then how to make it appear as so "I" comes first printed then "A" ,then "m" , then B and so on....simply like in typing
Plz help me And…

Naushaad Abbas
- 73
- 2
- 6
1
vote
1 answer
Set margin in printing GW-BASIC
I'm using GW-BASIC language and I need the output to be printed at the center of the page, right now it starts from the top left of the A4 size page, can I tried to set the margin using printer preference but there is no such option.
Can anyone tell…

MZH
- 1,414
- 4
- 29
- 57
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
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…

user5458726
- 11
- 1
0
votes
1 answer
How to implement for loop in javacc
I am implementing a parser based on javacc which will be able to GW Basic programs.
I implemented for loop like this
void forloop(Token line):
{
Token toV;
Token toI;
Token step;
Token next;
Token var;
}
{
…

arnold
- 1,682
- 8
- 24
- 31
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
0
votes
2 answers
GW-Basic for Windows 7 (64 Bit)
I was looking GW-Basic for Windows 7 (64 Bit) but I could not find a compatible version.
After searching, I came to know about QBasic that would be used for GW-Basic programs.
Please help me set up the environment for GW-Basic.

Bibi Tahira
- 1,082
- 5
- 15
- 39
0
votes
1 answer
GW Basic default variable initialization
I'm working with legacy code and ran across something that I haven't been able to explain after several days of looking up tutorials and handbooks for GW Basic: a variable (P9%) is used in a comparison on line 530 (IF P9% <> 0) before the code would…

Tim
- 67
- 1
- 7