Microsoft KB Archive/229792

= INFO: Maximum Number of Array Elements in Visual Basic 6.0 =

Article ID: 229792

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



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.

