Results 1 to 3 of 3

Thread: array loop?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    16

    Question



    Is it possible to make a variable array count up. If the variable array is questions(1 to 100) as string could I make this count up if a certain condition is true.

    questions(index) = questions(index) +1 or something

    I know that this doesnt work, but is it possible.

    Thanks


    "Creation is all in the mind"
    _____________________________
    vb 4.0 pro
    borland c++ 5.02
    c

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    you mean resize the array? If so, use Redim to resize it. Also include Preserve if you want to hold on to the array contents
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Thumbs up

    Perhaps, you can use the Dictionary Object. because this object provide the item count properties too. Yet, you can have a faster search in the Dictionary object as compare to the normal array.

    With the Dictionary Object, you can Add & Remove an item easily.

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