Community discussion forum

String size limit and array upperbound limit

  • 1 year ago
    Hi genious, Can anybody tell me what is the string size limit and Array upperbound limit in VB DOT NET. Please hlep me. Akhtar
    Post was edited on 19/11/2008 10:54:37 Report abuse
  • 1 year ago
    Akhtar, I believe any object is limited to a maximum size of 2GB. In addition, your Arrays will be limited by the fact they are indexed by a 32bit integer - so (2^31 - 1) entries. See this article: [http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=592](http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=592) Hope that helps
  • 1 year ago
    Thanks for your valiable reply
  • 0 month
    also you can easily check your own machine using a$="a" : For i = 0 to 1E20 : a$ &= a$ ... similar with Redim a(i)

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback