Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

out of memory (need new version of qb)

Status
Not open for further replies.

qbasicking

Programmer
Aug 19, 2001
628
US
the prgram that I was writing was too big, it filled up the 160K allowed by qbasic 1.1. Now I am writing an even bigger, more complicated program. What version of Qbasic allowed the biggest programs and where can I get it? (It would be great if I could find one that allows multi-megabyte programs.)

How many kilobytes (or megabytes) can BASICA support?
 
get quickbasic 4.5 or ms basic PDS 7.1
split the program into separate modules if possible, to ease development and allow larger program size.

----------------------------------------
There's no good nor evil, it's all in the mind.
 
A similar problem had been brought up before. You should read the following link (for the discussion) to make sure that that problem is similar to yours.

thread314-44800

If it is similar to your plight then you may want to check out the FAQ section. In particular...

faq314-494

Hopefully, something will help you. If so, then let us know; and if not, post again.

Otherwise, good luck.

--MiggyD
It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end.
 
to blurred (or anybody with 4.5)
How big can programs be in 4.5. My new program I estimate will need to be at lease 400K.

to miggyd
The places you sent me to weren't exactly what i need - one delt with RAM and the other one was for QB7.x

to anybody
Still looking. And does anybody know where i can get 4.5? How big can BASICA prgrams be (early version, came with DOS 3.3)

 
BasicA is good for only 64K, and besides, you need to use line numbers, need to use renum to insert a line between if you never left enough room. A definite step backward. Can you break your program down into a couple smaller separate ones? You could then chain these programs together and it would look like it was only 1 program. I currently do this with 160 separate programs totalling about 4MB. You can also share variable across programs with the common keyword.
Just a thought. David Paulson

 
to dpaulson
I thought about using the CHAIN statment, but there is a major drawback. My program is full of subs (over 120K are subs), and i need to be able to access these subs all throughout the program. You can't do that through CHAIN. Good thought, though.
The GOTO statments also wouldn't work.
 
qbasicking:

The posts I submitted was in reference to your original request of "What version of Qbasic allowed the biggest programs..." Insofar as a QB facsimilly, it would be Quick Basic 7 (a.k.a. QBX) and how to utilize RAM for very very large programs.

dpaulson is correct--break your program down into seperate moduels and use CHAIN to pass variables. It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end.
 
Carry the subs across modules via (quick)library use. Create a module that only holds your subs. If you are creating .exe files the module must be loaded when you do the creation. There are several ways to do this and the best method I don't know right now. I run in the basic envrionment, so: I link the library module when the first program is started then I "run" subsequent programs. My problem is I have to use a .dat file to hold my variables. I am moving to "chain", $Include files for my COMMON statements and repeated setup information, and compiling the library with each module - haven't got there yet!
 
to Henryb:
Someone else (Miggyd i believe) told me to use libraries, but qb1.1 won't allow it.
 
Queestion:


How do you pass variables between the main module and the subs in Qbasic 4.5?

-example- (do not run)

INPUT name$
CALL Shop

* * * * * *
''view of Sub "Shop"
* * * * * * * *

PRINT name$
end sub

it doesn't work! Please help!

-SD
 
you don't need to use the CALL statement for a sub. To answer your question you can either use DIM SHARED or declare it
DECLARE SUB shop (whatever your varible is here)

You should start your own thread for this qeustion, it will get more attension
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top