Questions tagged [quickbasic]

About Microsoft QuickBASIC

Microsoft QuickBASIC (also QB; not to be confused with "QBasic") is an Integrated Development Environment (or IDE) and compiler for the BASIC programming language. Compared to QuickBASIC, QBasic is limited to an interpreter only, lacks a few functions, can only handle programs of a limited size, and lacks support for separate program modules.

Also see:

Source: http://en.wikipedia.org/wiki/QuickBASIC

38 questions
7
votes
4 answers

How can I convert QBASIC PLAY Commands to Something More Contemporary?

I have play commands in my QB application like this: PLAY "MSe8f#4f#8f#8g8a8b4.a4.g4.f#4.o0b8o1e8e8e4d8e2." I'd like to convert these somehow into something modern applications could use. Any thoughts? I'm currently messing around with the…
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136
5
votes
2 answers

Are there any contemporary programming environments that are syntax-compatible with QBasic?

I've got an old book about learning to program in BASIC. It's very well written, entertaining, and does a great job of teaching the first steps in computer programming. It's also my first book about programming, which started it all for me. :) Now…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
5
votes
1 answer

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. LOCATE row%, column% REM Move the text cursor to…
user539810
5
votes
3 answers

Random number from 0 to 100 in QBasic

I need a totally random number from 0 to 10 or from 0 to 100 as a value "NUM" done in QBasic for a random draw program. I currently have this: RANDOMIZE TIMER: A = INT((RND * 100)): B = INT((RND * 10)): C = (A + B) NUM = INT(C - (RND * 10)) This is…
Gala
  • 2,592
  • 3
  • 25
  • 33
4
votes
1 answer

Invalid variable name error in QB64 with old QuickBasic code

I am trying to run a QuickBasic file written by someone else in 1992. I am using QB64 on a Windows 10 machine. I get an error message that says Invalid variable name in line 26 of the following code. Lines 1-31 are below, but here is line 26 in…
Mark Miller
  • 12,483
  • 23
  • 78
  • 132
4
votes
2 answers

Quick Basic Decompilation

We are looking for quick basic decompiler. The program is very old, written in DOS now we wish to enhance that code in Windows with additional functionalities. Unfortunately the developer is not traceable and only hope is decompilation. Please…
4
votes
1 answer

How Could One Write This Basic PAINT Statement in JavaScript?

In BASIC there is a command called PAINT that looks like this: PAINT (column, row), color, color-stop It takes x/y coordinates as a starting place and begins filling it and the surrounding pixels in with color until it reaches the color defined in…
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136
3
votes
1 answer

How to Reverse Engineer QuickBasic Application?

I have an application written in QuickBasic (a game). I own the rights to it, but didn't write the original code. I have the source code in front of me, but I'm banging my head a bit in trying to make sense of it all. Are there any ways to make…
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136
3
votes
1 answer

excel vba read whole text file at once

I am using CADCAM Software and writing macro code. Here is my basic macro code. OPEN "C:\Area ratio\etch.txt" FOR INPUT as #1 DO WHILE NOT EOF (1) =1 LINE INPUT #1, REC$ if REC$="" then goto jump2 'PRINT REC$ y2#=Y2#-200 Addtext@…
News Dozens
  • 41
  • 2
  • 8
3
votes
2 answers

Open Files Created with BSAVE in QuickBasic?

I have some files that were created using BSAVE in QuickBasic. I'm wondering how I can load/view these files?
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136
3
votes
1 answer

Quick Basic PLAY function parameter syntax. Example: PLAY "MSe8f#4f#8f#8g8a8b4.a4.g4.f#4.o0b8o1e8e8e4d8e2."

Many older BASIC dialects supported playing sounds and music using PLAY function. The string passed as a parameter has certain syntax which describes notes, their duration etc. For pure academic purposes I am looking for a documentation on exact and…
George Mamaladze
  • 7,593
  • 2
  • 36
  • 52
2
votes
1 answer

Inconsistent REDIM behaviour in QuickBasic 4.5

I was writing a toy QBasic compiler and some tests for it. When I tried to create a vector type, I encountered an inconsistency with REDIM. The following code works in both QBasic and QuickBasic 4.5 interpreters. However, it produces 'Subscript out…
nightuser
  • 664
  • 4
  • 13
2
votes
0 answers

How to detect MouseWheel in QB45

I am using the following code to trap Left/Right/Middle mouse button and mouse row/column in QB45: (QB45 is Microsoft Quick Basic v4.5) and I need a way to detect MouseWheel. I have looked at Ralf Brown's interrupt list without luck. Any ideas? btw:…
Azathoth
  • 105
  • 1
  • 9
2
votes
2 answers

Why do these idneitcal QB calculations produce slightly different values?

So, I'm trying to port some very old and venerable engineering analysis QBasic 4.5 code into C. I'm trying to match results exactly, and I find that I can't quite understand how QB does its math. For example, these two lines DIM a AS SINGLE DIM d2…
Chris
  • 629
  • 1
  • 10
  • 28
2
votes
2 answers

Rewriting Basic Code without Label

I have some code that uses label, an example of it is below: SUB occupy (x) occupied(x) = 0 FOR i = 1 TO 40 IF armyloc(i) = x THEN occupied(x) = i GOTO holdup ELSE END IF NEXT i holdup: END SUB As you can see, it uses the label holdup to…
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136
1
2 3