array single element delete

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • latin & geek via DotNetMonster.com

    #1

    array single element delete

    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.

    --
    Message posted via DotNetMonster.c om
    Best online pokies for real money in Australia and learn about safety and game mechanics in this comprehensive guide.


  • RobinS

    #2
    Re: array single element delete

    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.c om" <u16975@uwewrot e in message
    news:70c6d94044 150@uwe...
    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.
    >
    --
    Message posted via DotNetMonster.c om
    Best online pokies for real money in Australia and learn about safety and game mechanics in this comprehensive guide.

    >

    Comment

    • latin & geek via DotNetMonster.com

      #3
      Re: array single element delete

      RobinS wrote:
      >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.
      >-----------------------------
      >hi.
      >>
      >[quoted text clipped - 7 lines]
      >thanks in advance,
      >m.
      oh geez. that's a mess. sigh! thank a lot for the quick reply though :)

      --
      Message posted via DotNetMonster.c om
      Best online pokies for real money in Australia and learn about safety and game mechanics in this comprehensive guide.


      Comment

      • rowe_newsgroups

        #4
        Re: array single element delete

        On Apr 16, 3:35 am, "RobinS" <Rob...@NoSpam. yah.nonewrote:
        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.c om" <u16975@uwewrot e in messagenews:70c 6d94044150@uwe. ..
        >
        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.
        >
        --
        Message posted via DotNetMonster.c om
        http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
        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

        Comment

        • =?ISO-8859-1?Q?G=F6ran_Andersson?=

          #5
          Re: array single element delete

          rowe_newsgroups wrote:
          On Apr 16, 3:35 am, "RobinS" <Rob...@NoSpam. yah.nonewrote:
          >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.c om" <u16975@uwewrot e in messagenews:70c 6d94044150@uwe. ..
          >>
          >>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.
          >>--
          >>Message posted via DotNetMonster.c om
          >>http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
          >
          >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
          >
          You are not mistaken. There has been a Stack and a Queue since framework
          1.0.

          --
          Göran Andersson
          _____
          Göran Anderssons privata hemsida.

          Comment

          • Cor Ligthert [MVP]

            #6
            Re: array single element delete

            Goran,

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

            Cor

            "Göran Andersson" <guffa@guffa.co mschreef in bericht
            news:ukOnpEEgHH A.1312@TK2MSFTN GP03.phx.gbl...
            rowe_newsgroups wrote:
            >On Apr 16, 3:35 am, "RobinS" <Rob...@NoSpam. yah.nonewrote:
            >>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.c om" <u16975@uwewrot e in
            >>messagenews:7 0c6d94044150@uw e...
            >>>
            >>>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.
            >>>--
            >>>Message posted via DotNetMonster.c om
            >>>http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
            >>
            >>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
            >>
            >
            You are not mistaken. There has been a Stack and a Queue since framework
            1.0.
            >
            --
            Göran Andersson
            _____
            http://www.guffa.com

            Comment

            • Cor Ligthert [MVP]

              #7
              Re: array single element delete

              For true arrays

              http://msdn2.microsoft.com/en-us/lib...to(vs.80).aspx

              Herfried has even a better one,

              Cor

              "latin & geek via DotNetMonster.c om" <u16975@uweschr eef in bericht
              news:70c6d94044 150@uwe...
              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.
              >
              --
              Message posted via DotNetMonster.c om
              Best online pokies for real money in Australia and learn about safety and game mechanics in this comprehensive guide.

              >

              Comment

              • latin & geek via DotNetMonster.com

                #8
                Re: array single element delete

                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.

                --
                Message posted via DotNetMonster.c om
                Best online pokies for real money in Australia and learn about safety and game mechanics in this comprehensive guide.


                Comment

                • =?ISO-8859-1?Q?G=F6ran_Andersson?=

                  #9
                  Re: array single element delete

                  Cor Ligthert [MVP] wrote:
                  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...
                  "Göran Andersson" <guffa@guffa.co mschreef in bericht
                  news:ukOnpEEgHH A.1312@TK2MSFTN GP03.phx.gbl...
                  >rowe_newsgroup s wrote:
                  >>On Apr 16, 3:35 am, "RobinS" <Rob...@NoSpam. yah.nonewrote:
                  >>>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.c om" <u16975@uwewrot e in
                  >>>messagenews: 70c6d94044150@u we...
                  >>>>
                  >>>>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.
                  >>>>--
                  >>>>Message posted via DotNetMonster.c om
                  >>>>http://www.dotnetmonster.com/Uwe/For...b-net/200704/1
                  >>>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
                  >>>
                  >You are not mistaken. There has been a Stack and a Queue since framework
                  >1.0.
                  >>
                  >--
                  >Göran Andersson
                  >_____
                  >http://www.guffa.com
                  >
                  >

                  --
                  Göran Andersson
                  _____
                  Göran Anderssons privata hemsida.

                  Comment

                  Working...