|
-
Jan 6th, 2005, 10:04 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|