01-13-2008, 12:29 AM
Above, I posted a possible solution to your thoughts on large arrays in QB. Since then, I have explored farther, and have found that I can create a number (N) of three-dimensional arrays of the type A(x,x,x), as follows:
      Total # of
 x  N Elements
25Â Â 5Â 78125
24Â Â 6Â 82944
23Â Â 6Â 73002
22Â Â 7Â 74536
21Â Â 9Â 83349
20Â 10Â 80000
19Â 12Â 82308
18Â 14Â 81648
17Â 17Â 83521
16Â 20Â 81920
It would seem safe to assume that just about anybody should be able to approach those levels, which falls short of your desired three-dimensional arrays with x = 100 (1,000,000 elements), and higher, as the most I could get, using my method, would be 78,125 elements using 5 arrays with x=25 (equivalent to a (42,42,42) array), or 82,944 elements using 6 arrays with x=24 (equivalent to a (43,43,43) aray).
However, back in 1986, I had the problem that Bechtel, the engineering company that I worked for, had a requirement for a 100-bus electrical voltage-drop program. We had a BASIC program we bought from General Electric that was good for 25 busses. It turned out that there were 4 (or was it 5?) three-dimensional arrays of (bus,bus,bus) size. I tweeked that program, and got 28 buses maximum! Finally, I learned of an IBM (or was it MicroSoft?) program that allowed one to use "far memory", which allowed me to convert the original 25-bus program to 120 busses. Unfortunately, I don't have that program, nor do I remember its name. Perhaps an intense search could find it?
      Total # of
 x  N Elements
25Â Â 5Â 78125
24Â Â 6Â 82944
23Â Â 6Â 73002
22Â Â 7Â 74536
21Â Â 9Â 83349
20Â 10Â 80000
19Â 12Â 82308
18Â 14Â 81648
17Â 17Â 83521
16Â 20Â 81920
It would seem safe to assume that just about anybody should be able to approach those levels, which falls short of your desired three-dimensional arrays with x = 100 (1,000,000 elements), and higher, as the most I could get, using my method, would be 78,125 elements using 5 arrays with x=25 (equivalent to a (42,42,42) array), or 82,944 elements using 6 arrays with x=24 (equivalent to a (43,43,43) aray).
However, back in 1986, I had the problem that Bechtel, the engineering company that I worked for, had a requirement for a 100-bus electrical voltage-drop program. We had a BASIC program we bought from General Electric that was good for 25 busses. It turned out that there were 4 (or was it 5?) three-dimensional arrays of (bus,bus,bus) size. I tweeked that program, and got 28 buses maximum! Finally, I learned of an IBM (or was it MicroSoft?) program that allowed one to use "far memory", which allowed me to convert the original 25-bus program to 120 busses. Unfortunately, I don't have that program, nor do I remember its name. Perhaps an intense search could find it?
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.