954,153 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

QBASIC and Visual Basic

I find it interesting that QBASIC is mentioned for several reasons:

1. This language and any of its predacessors are hardly used these days. And, if they are, it's most likely for nostalgic reasons. At one time, I remember, some schools used it for introductory programming courses. For a time, in the mid 90s, some nostalgic frenzy seemed to have spiked (I remember messing around with BasicA on a Commodore 64 and I'm sure others were having fun with it on Apple 2s) its usage; Gorillas (wassit?) was a fun game. But, certainly, it's no more widely used now (if used as much) as languages like Pascal and certainly not C, C++, Java, C#, etc. I remember finding it quite novel in Windows 3.1 Workstation, ten years ago. Are people still actively developing in QBASIC?

2. The similarities between QBASIC and Visual Basic are nominal at best. Does .NET even support QBASIC? Hell, does Windows XP even come with QBASIC installed? (I'm a Linux-only user)

3. Is there anything useful about QBASIC that warrants its use over another language? Or even a reason to dedicate a topic to it? Some calculators use a BASIC interpretor still... perhaps that?

Sorry, I had to break from the work I was doing and eat my jello and drink my coffee (I know, it's weird).

subtronic
Junior Poster
117 posts since Aug 2003
Reputation Points: 44
Solved Threads: 1
 

I have to disagree with you on several points.

It is still used a lot. Check out all the forums that are still active.
It is still taught in school as a first programming language.

It is very similar in syntax to PowerBasic for windows which is much better
than VB and a lot less expensive anyway.(And the best support on the planet)

Their console compiler is like using qbasic in text mode (though all the api
stuff and any other dll are available too).

Windows programming can be a little overwhelming and I think qbasic still has
a place.

Buff
Light Poster
40 posts since May 2004
Reputation Points: 11
Solved Threads: 0
 

I have to disagree with you on several points.

Windows programming can be a little overwhelming and I think qbasic still has a place.

Ah, perhaps that is the distinction. I was taught Pascal in high school and my natural progression was C and Linux. It's weird for me to think that there's an entire Windows programmer / programming culture out there. I suppose if your goal is to graduate to a more comprehensive language (which I'm assuming PowerBasic is based on what you've said), then teaching syntax and basic concepts with QBASIC would make sense.

Thanks for the insight

subtronic
Junior Poster
117 posts since Aug 2003
Reputation Points: 44
Solved Threads: 1
 

Plus it (PB) allows inline assembly language statements.

With the availability of User Defined Types, Structures, Subs, Functions,
a whole range of data types (integer, long integer, Quad integer, word, dword,
Currency, currencyx (2 decimal places)) and asciiz strings (called other
things in other languages it's basically a string ending in 0 hex.), variable
length strings (of course), fixed length strings, string and numeric arrays
just to name some.), PB is a powerful windows programming tool.

Buff
Light Poster
40 posts since May 2004
Reputation Points: 11
Solved Threads: 0
 

Plus it (PB) allows inline assembly language statements.

With the availability of User Defined Types, Structures, Subs, Functions, a whole range of data types (integer, long integer, Quad integer, word, dword, Currency, currencyx (2 decimal places)) and asciiz strings (called other things in other languages it's basically a string ending in 0 hex.), variable length strings (of course), fixed length strings, string and numeric arrays just to name some.), PB is a powerful windows programming tool.

Sounds like it. It's too bad I'm unable to bring myself to use Windows (if for nothing else to program in this language just for the sake of programming). I use to be into music production, but since I've been out of College I've been quite busy with other things... I think if I do get back into music production, I'll use a Mac. Even though I firmly (pun intended) believe that Steve Jobs is a tool.

subtronic
Junior Poster
117 posts since Aug 2003
Reputation Points: 44
Solved Threads: 1
 

I also learned Pascal first.

I hate C.

And I need real time programming with millisecond accuracy, which Microsift has taken away.

Real-tiner
Posting Whiz in Training
207 posts since Dec 2004
Reputation Points: 11
Solved Threads: 8
 
And I need real time programming with millisecond accuracy, which Microsift has taken away.


M$ hasn't taken it away. It was never in Standard C in the first place so it was compiler dependent. I believe there is an API to handle what you want, which means it would be available in most any language on Windows, since it's part of the OS. Check http://msdn.com

WaltP
Posting Sage w/ dash of thyme
Moderator
10,492 posts since May 2006
Reputation Points: 3,348
Solved Threads: 943
 

Is there any way i can convert my .bas files to VB 6 format

menonsr
Newbie Poster
1 post since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You