array single element delete

  • Thread starter Thread starter latin & geek via DotNetMonster.com
  • Start date Start date
L

latin & geek via DotNetMonster.com

hi.

i'm working with something like a stack, where i want to be able to *remove*
a specific element and automatically reindex the remaining.
can someone please tell me how to do this? i'm only able to turn up a Myarray.
clear() which cleans out the entire array!

thanks in advance,
m.
 
You have to do it manually. If you're using .Net 2.0, you can actually
*use* a stack; it's part of the new Generics namespace. Although if you
want to remove something in the middle, a generic list (List(Of T)) would
be better.

Robin S.
 
RobinS said:
You have to do it manually. If you're using .Net 2.0, you can actually
*use* a stack; it's part of the new Generics namespace. Although if you
want to remove something in the middle, a generic list (List(Of T)) would
be better.

Robin S.
-----------------------------
[quoted text clipped - 7 lines]
thanks in advance,
m.

oh geez. that's a mess. sigh! thank a lot for the quick reply though :)
 
You have to do it manually. If you're using .Net 2.0, you can actually
*use* a stack; it's part of the new Generics namespace. Although if you
want to remove something in the middle, a generic list (List(Of T)) would
be better.

Robin S.
-----------------------------
latin & geek via DotNetMonster.com said:
i'm working with something like a stack, where i want to be able to
*remove*
a specific element and automatically reindex the remaining.
can someone please tell me how to do this? i'm only able to turn up a
Myarray.
clear() which cleans out the entire array!
thanks in advance,
m.
You have to do it manually. If you're using .Net 2.0, you can actually
*use* a stack;

I was thinking we had stacks and queues in 1.1 - Am I mistaken?

Thanks,

Seth Rowe
 
rowe_newsgroups said:
I was thinking we had stacks and queues in 1.1 - Am I mistaken?

Thanks,

Seth Rowe

You are not mistaken. There has been a Stack and a Queue since framework
1.0.
 
hi all! thanks for everyone's input.

i'm a little lost still with .net, so i had to look up more help to
understand the stacks business, but yes.. now it all works!

thank you to everyone :)

m.
 
Cor said:
Goran,

But what is it related to the question from the OP?

Cor

Read the previos replies, and you might be able to figure it out...
 
Back
Top