Array/Memory Limitations of VB

Posted on 2003-03-04
Medium Priority
Last Modified: 2010-05-01
I have 2 flexgrids displaying 2 months worth of reservations along my x axis.  Each reservation is a user-defined type that is about 300 bytes.  There is a maximum of 62 reservations.  (300*62) = roughly 20k.

Along the y axis I have 20 units.  Each unit is a user-defined type that is about 100 bytes.  (100*20) = roughly 2k.

I need to have fast access to the information in each reservation and/or unit on the click of that object.  I would like to store all this data in an array, but I understand VB has a limitation of 64k?? when it comes to arrays.  

This form would need 20 Units (40 K) * 62 Reservations (20K) per Unit.  A rough estimate is that I need 800k of memory.  Obviously arrays are not going to work based on what I've been told.  Is there an easier solution to this problem??  I'm scared that loading a recordset and accessing it on click is too slow, but maybe this is not the case.  Any advice would be helpful, thank you.
Question by:kbach
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

Tuy earned 300 total points
ID: 8070827
Have u tested it that u can only put 64k in an array ?

I just tested it with an array of 10.000.000 of the type long. The long type is 32bit = 4 byte i also filled it with long types to make sure.

that means 10.000.000 times 4 bytes, it it worked, so i guess the 64k isn't correct.

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question