Results 1 to 4 of 4

Thread: Array - Visual Basic 6.0

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    Florida, USA
    Posts
    56

    Question Array - Visual Basic 6.0

    Hello programmers

    Please I need you advice. I have an one dimension array declared as

    dim MyArray(9000) as string

    I am working with Windows 98 and Visual Basic 6.0


    *** Question:

    What is the maximun store size for one dimension array?

    Can I declare Dim MyArray(13000) as string?

    Thanks to alll for your time


    Daniel
    Hollywood, FL
    Daniel
    Florida

  2. #2

  3. #3
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    From MSDN

    The maximum number of controls allowed on a single form depends on the type of controls used and available system resources. However, there is a fixed limit of 254 control names per form. A control array counts only once toward this limit because all the controls in the array share a single control name.

    The limit on control array indexes is 0 to 32,767 on all versions.

    If you layer controls on top of each other, such as using several frame controls within other frames, Visual Basic will generally accept no more than 25 levels of nested controls
    "I have not failed. I've just found 10,000 ways that won't work."
    'Thomas Edison'

    "If we knew what it was we were doing it wouldn't be called research, would it?"
    'Albert Einstein'

    VB6

  4. #4
    Fanatic Member
    Join Date
    May 2001
    Posts
    837
    You can make the array as big as you want as long as your computer has enough memory for it, but if you're making arrays that big might i suggest you create them dynamically...
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width