INFO: Maximum Number of Array Elements in Visual Basic 6.0 (229792)



The information in this article applies to:

  • Microsoft Visual Basic Learning Edition for Windows 6.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

This article was previously published under Q229792

SUMMARY

The maximum number of elements in an array is limited by the amount of available system resources. While you could possibly have an array with the maximum 32-bit value of 2147483648, your program would run out of memory on Windows NT because Windows NT 4.0 only supports 4GB of memory in a single process.

REFERENCES

For more information about project, control, and code limitations in Visual Basic, please see the following topics in the Visual Basic Programmers Guide in the Online Help:
  • Project Limitations
  • Control Limitations
  • Code Limitations
  • Data Limitations
  • System Resource Limitations

Modification Type:MajorLast Reviewed:5/13/2003
Keywords:kbinfo KB229792