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!

Very Large Array 1

Status
Not open for further replies.

nitinsharma

Technical User
Jun 20, 2002
5
US
Hi all
first i wud liek to say taht this seems to be a elite gathering of cool dudes on the net, keep the good work up

I am trying to DIM a large array
DIM a(1 TO 12, 1 TO 2600+)
and keep getting subscript out of range error, i tried the suggestions in eduardo's question thread on a similar problem but i am not getting a solution, i need to perform simple calculations (no image processing and stuff) and just need to deal with large numbers and arrays, but i cant get this to work, how do i get this to initialise, any help is appreciated.
THANX
NS
 
You're using the wrong language to work with arrays that large. Even with a elements that are one byte long with a 12x2600 array, you'd use 31,200 bytes just for the data. Integers would double that, which would be beyond the memory limit in QB.
 
Maybe,and I said maybe there an option while loading Qbasic. It only can be found within Qb4.5 and Qb7 -> /AH Allows dynamic arrays of records, fixed-length strings, and numeric data to be larger than 64K each.
Hope it will be what you need.
There's several post about Qb4.5 and Qb7 if you want to know more about them ;-)
 
THANX oak it worked, i earlier had qbasic 1 then i went to 4.5 and AH worked, so now i am on my way
thanx you know where to get QB7 from? any download site, plus is there a big difference between QB and visual basic (language wise)?
is there a QBASIC windows compiler, i.e. smthing that runs in windows?
Anyways thanx guys u have been a grt help and really prompt in replying
trollaciuos thank you too.
NS
 
I want to use /AH with 4.5, but my program has a mouse driver that uses CALL Absolute, so I have to use the /L option, is there any way to use both?
 
From the DOS prompt, in your QB directory type in ' /? ' as the parameter when you activate QB see the screen shot below:

[tt]C:\QBASIC45>[red]qb /?[/red]

Valid options: [/RUN] file /AH /B /C:buf /G /NOHI /H /L [lib] /MBF /CMD string

C:\QBASIC45>[/tt]


So type it as you see it...(/ah first then /l).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top