45 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
5
answers
301
views
perform gw-basic comparison of two variables
I'm using gw-basic to determine a person's weight on another planet.
I need to form a comparison between the weight factor on a planet to the planet that the user inputs. I have defined my planets so ...
2
votes
2
answers
105
views
How do I wait on an IBM PCjr?
I'm having trouble with a program I am trying to write for my PCjr, where I need to pause the program for an amount of time before running the next instruction. Here it is:
10 CLS
20 PRINT "|&...
0
votes
1
answer
148
views
GW BASIC chatbot with DATABASE.TXT file
I'm trying to code a simple GW Basic chatbot that reads keywords and replies and default replies from a text file. Here is the example DATABASE.TXT file
============= GW BASIC CHATBOT DATABASE ========...
0
votes
1
answer
229
views
Is the "FOR-NEXT" loop wrong in this GW-BASIC program?
I got the original version of this program from a computer magazine. It asked for an Arabic number ranging from 1 to 3999 and converted it into the Roman equivalent. That worked flawlessly. Now I want ...
1
vote
1
answer
128
views
Im trying to make tetris in Basic , but I have encoutered a problem which i cant seem to solve
' Define the subroutine
SUB MySubroutine
PRINT "Hello, world!"
END SUB
' Call the subroutine
CALL MySubroutine
I wanted to try and make TetrisTetris in qbasic but I'm trying to figure ...
3
votes
2
answers
1k
views
How to write a program in gwbasic for adding the natural numbers for 1 to 100?
I am trying to write a program for adding the natural numbers from 1 to n (1 + 2 + 3 + ... + n). However, the sum appears 1 when I use if statement. And when I use for-next statement there is a syntax ...
1
vote
2
answers
992
views
Commands in GWBASIC
I am using GWBASIC and cannot figure out a few things. Like, when I'm saving a program after running it with F4, it says: File not found.
Secondly, when I'm using auto command it shows * with line ...
2
votes
0
answers
695
views
How to read a protected .bas file which has "line buffer overflow"?
I have an old file which I'd like to read its code.
The file has no extension. Right click + open with notepad gives me something like that :
1 N¦öêS‚ `šØ3ドル⁄4Œ2 € ...
2
votes
4
answers
257
views
illegal file number in *line number*
I'm writing a program in GW-BASIC. For some reasons, I have the following error :
"Numéro de fichier illégal en 4712"
which can be translated in english by,
" illegal file number in 4712"
Here is ...
4
votes
5
answers
858
views
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\...
1
vote
1
answer
169
views
why is the function CHDIR not working on the network ? Qbasic BasicA
I have a .bas file that I run using GWBASIC.EXE
The .bas file uses other files located in the path : \srv120 (T:)\Basic
(GWBASIC.EXE and the .bas file are also in the same directory T\Basic)
In the ...
6
votes
1
answer
245
views
Was there ever a first parameter for the CLEAR statement?
In both GW-BASIC and QuickBASIC, statements are passed arguments, some of which are optional and can be omitted depending on the statement:
REM Move the text cursor to the specified column and row.
...
user avatar
user539810
2
votes
1
answer
259
views
Modify basic files used with gwbasic
I have a batch file which launches other .bas files with the help of gwbasic.
Here is the code of the batch file:
graphics
cd basic
gwbasic menut-hp/d
cd \
Then I have the possibility by typing 1 or ...
2
votes
2
answers
630
views
Explicit line numbers and execution order
GW-BASIC and many other old BASIC dialects like C64 BASIC allowed you do something like this:
20 PRINT "World"
10 PRINT "Hello"
and that would result in the following output when the RUN command/...
10
votes
4
answers
8k
views
How can I exit Microsoft GW-BASIC, IBM BASICA, or other similar old dialects of BASIC?
Microsoft BASIC, GW-BASIC and BASICA all use a prompt that looks like this:
I can't figure out how to exit any of these. Typing END does not exit them. EXIT, QUIT, Q, Ctrl+C, and everything else that ...