Results 1 to 14 of 14

Thread: Simple code.. What's wrong?

Threaded View

  1. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Simple code.. What's wrong?

    Don't your arrays start at 0? If so, you are missing them.

    Also, you don't set the new array position as being +1 to the last one.
    You should redim with the preserved option before you write to the array.

    Start out like this:

    Dim arrIPs() As Variant

    set the first position as, say for example, z=0

    when you go to add it

    redim preserve arrIPs(z + 1)

    you wouldn't need to loop to find the next open spot.
    Last edited by dglienna; Jan 6th, 2005 at 10:09 PM.

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