PC Review


Reply
Thread Tools Rate Thread

create subarray

 
 
puzzlecracker
Guest
Posts: n/a
 
      16th Oct 2008
say I have an array string [] array1={"aa","bb"...};

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

Thanks
 
Reply With Quote
 
 
 
 
sternr
Guest
Posts: n/a
 
      16th Oct 2008
On Oct 16, 10:54*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Thu, 16 Oct 2008 13:52:07 -0700, puzzlecracker <ironsel2...@gmail.com>*
> wrote:
>
> > say I have an array string [] array1={"aa","bb"...};

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

>
> And?


Use:
Array.Copy
 
Reply With Quote
 
Göran Andersson
Guest
Posts: n/a
 
      17th Oct 2008
puzzlecracker wrote:
> say I have an array string [] array1={"aa","bb"...};
>
> 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
 
Reply With Quote
 
puzzlecracker
Guest
Posts: n/a
 
      17th Oct 2008
On Oct 17, 6:03*am, Göran Andersson <gu...@guffa.com> wrote:
> puzzlecracker wrote:
> > say I have an array string [] array1={"aa","bb"...};

>
> > 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a macro to create excel line graph with coloured pointers anddata lables anuj datta Microsoft Excel Charting 1 30th Sep 2009 04:04 PM
how to create an auto reply rule/macro that wont create a new mess squalltheonly Microsoft Outlook Discussion 4 15th Nov 2008 04:03 PM
URGENT: Alan Beban - SubArray not working - any thoughts? Marston Microsoft Excel Programming 2 13th Aug 2004 04:31 AM
how to make a subarray? =?Utf-8?B?TmVlZCBIZWxwcw==?= Microsoft VC .NET 1 27th May 2004 05:28 PM
Create user on win2k domain does not create mailbox on ex2k server Jeff Howard Microsoft Windows 2000 0 1st Oct 2003 12:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 PM.