Results 1 to 3 of 3

Thread: [RESOLVED] question about arrays

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    Resolved [RESOLVED] question about arrays

    lets say I have an array of strings that has 100 elements. Is there a way for me to transfer 50 of those elements to another array of strings without having to use a loop that assigns each element one by one to the the other array?

  2. #2
    Banned
    Join Date
    Oct 2005
    Posts
    22

    Re: question about arrays

    Yes. Use:

    Array.Copy(sourceArray, 50, destArray, 0, 50);

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    Re: question about arrays

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width