Removing array 
Author Message
 Removing array

Does .Net have the facility to remove an array item and automatically
reindex?

By this I mean if I have the following...

name(1)="Bob"
name(2)="Carol"
name(3)="Dave"
name(4)="Peter"

and I 'somehow' remove index 2, then my array list would be like

name(1)="Bob"
name(2)="Dave"
name(3)="Peter"

Is this possible?



Sat, 17 Sep 2005 02:53:56 GMT  
 Removing array
Hello Jason,


Quote:
> Does .Net have the facility to remove an array item
> and automatically reindex?

No. Use an ArrayList instead. You can remove items using its Remove and
RemoveAt methods.

Regards,
Herfried K. Wagner



Sat, 17 Sep 2005 03:20:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. q:Remove array element...

2. Remove Array Bounds Checks

3. Removing Value from Array

4. Removing Controls from an Array at Runtime

5. Removing one element in dynamic array

6. Removing Duplicate Array Entries

7. Removing control arrays once created

8. removing control array - runtime error

9. HELP WITH removing item from a 2 dim array within ASP Form

10. Problem Removing An Array Element

11. remove item from array

12. Removing an item in an array...

 

 
Powered by phpBB® Forum Software