Results 1 to 5 of 5

Thread: Arrays in Loops?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2002
    Location
    Atlanta
    Posts
    29

    Arrays in Loops?

    What are some potential dangers in using arrays in loops?

  2. #2
    hellswraith
    Guest
    What are you specifically asking? A lot of times you loop because of an array...

    Here is a way you would use an array in a loop:
    VB Code:
    1. Dim intCount As Integer
    2. Dim array(4) As String
    3. array(0) = "Hello"
    4. array(1) = "How"
    5. array(2) = "are"
    6. array(3) = "you."
    7.  
    8. For intCount = 0 to 4
    9.    MsgBox array(intCount)
    10. Next

  3. #3
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    There shouldn't be any...where did you hear that from?


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  4. #4
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    dangers?? Why would be any danger??
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  5. #5
    Member BinaryAnge's Avatar
    Join Date
    Jun 2002
    Location
    Columbus,Ohio
    Posts
    51
    no dangers, could have some errors if your not paying attention. like with redim, remember to preserve
    The Programmers Credo -
    Protect dumb-ass from himself.

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