GW-BASIC | The original source code of Microsoft GW-BASIC
kandi X-RAY | GW-BASIC Summary
kandi X-RAY | GW-BASIC Summary
This repo contains the original source-code for Microsoft's GW-BASIC interpreter, as of 1983.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of GW-BASIC
GW-BASIC Key Features
GW-BASIC Examples and Code Snippets
Community Discussions
Trending Discussions on GW-BASIC
QUESTION
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 I can think of also does not work.
I'm sure there's a way to do this. I can't imagine everyone who used BASICA on DOS had to restart their machine every single time they wanted to exit the development environment.
So, how do I exit from the old BASIC editor prompt?
...ANSWER
Answered 2017-May-30 at 04:26Usually for those command line editors Ctl-Z
would do the trick since it sends the EOF character and thus signal terminating input.
If that doesn't do it, try typing system
QUESTION
GW-BASIC and many other old BASIC dialects like C64 BASIC allowed you do something like this:
...ANSWER
Answered 2018-Feb-03 at 01:52I'm surprised that the first bascom you found reported an error. All compilers that I've ever used for BASIC, and I believe I've used a lot of them since 1982 on, made line numbers optional and supported labels. I remember that in my first job as a professional programmer, we designed a compiler pre-processor that would insert only lines needed for proper IF, ELSE IF and END IF statements by replacing stuff with line numbers and (gasp) GOTO statements.
I still use line numbers today in my still supported VB6 accounting application thanks to MZ-Tools add-in that allows me to add and remove line numbers to my methods and function with a single button click. This allows me to use Erl (error line number) in all my error routines, also a quick one-button add to all my methods and functions, which allows me to pin-point the exact line any error occurs on.
I'm sure the compiler designers thought that line numbers were only of real use to interpreters, and perhaps the first version of bascom figured you'd develop and test with an interpreter, then compile and distribute the executable, then perhaps later versions figured developers were using text editors, especially the later versions that came with their own IDE's and who would need line numbers there? Well, we do if we want precise error reporting! That's one thing I like about Java and Eclipse. The line numbers are there so I can know exactly where the errors are, but they don't get in the way like they do in BASIC (remove line numbers, add/remove code, replace line numbers).
QUESTION
In both GW-BASIC and QuickBASIC, statements are passed arguments, some of which are optional and can be omitted depending on the statement:
...ANSWER
Answered 2018-Dec-11 at 10:33What I'm wondering is whether that first "argument" ever used for anything prior to GW-BASIC, i.e. something like this was actually useful:
QUESTION
In Emacs25 I used the recommended syntax to open a remote file in sudo mode:
find-file "/ssh:ichiban@izu|sudo:ichiban@izu:~/
but Emacs just hangs. I set some degging settings in my .emacs file:
...ANSWER
Answered 2018-Feb-22 at 23:36QUESTION
In BASIC I know of two instructions to print to the screen, PRINT
and WRITE
, both of which automatically print strings with a newline at the end. I want to print a string without a newline. How can I do this? I'm using GW-BASIC.
ANSWER
Answered 2017-May-06 at 00:56Using PRINT
with a semicolon will not print a new line:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GW-BASIC
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page