create subarray

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • puzzlecracker

    #1

    create subarray

    say I have an array string [] array1={"aa","b b"...};

    I want to create second array that will contain all elements first
    array except for the very first one ?

    Thanks
  • Peter Duniho

    #2
    Re: create subarray

    On Thu, 16 Oct 2008 13:52:07 -0700, puzzlecracker <ironsel2000@gm ail.com>
    wrote:
    say I have an array string [] array1={"aa","b b"...};
    >
    I want to create second array that will contain all elements first
    array except for the very first one ?
    And?

    Comment

    • sternr

      #3
      Re: create subarray

      On Oct 16, 10:54 pm, "Peter Duniho" <NpOeStPe...@nn owslpianmk.com>
      wrote:
      On Thu, 16 Oct 2008 13:52:07 -0700, puzzlecracker <ironsel2...@gm ail.com> 
      wrote:
      >
      say I have an array string [] array1={"aa","b b"...};
      >
      I want to create second array that will contain all elements first
      array except for the very first one ?
      >
      And?
      Use:
      Array.Copy

      Comment

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

        #4
        Re: create subarray

        puzzlecracker wrote:
        say I have an array string [] array1={"aa","b b"...};
        >
        I want to create second array that will contain all elements first
        array except for the very first one ?
        >
        Thanks
        Well, that's pretty easy, isn't it?

        But, do you really need to do that? Why not just simply not use the
        first item? Or prehaps you should look earlier in the chain; where do
        you get the data from in the first place, and is there a way to omit the
        first item there?

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

        Comment

        • puzzlecracker

          #5
          Re: create subarray

          On Oct 17, 6:03 am, Göran Andersson <gu...@guffa.co mwrote:
          puzzlecracker wrote:
          say I have an array string [] array1={"aa","b b"...};
          >
          I want to create second array that will contain all elements first
          array except for the very first one ?
          >
          Thanks
          >
          Well, that's pretty easy, isn't it?
          >
          But, do you really need to do that? Why not just simply not use the
          first item? Or prehaps you should look earlier in the chain; where do
          you get the data from in the first place, and is there a way to omit the
          first item there?
          >
          --
          Göran Andersson
          _____http://www.guffa.com
          Well, my first item is the name of the class (which I use to create
          an instance), and the rest of the arguments are parameters for a
          method into that class instance.

          Comment

          Working...