Results 1 to 2 of 2

Thread: simple Array question

  1. #1

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252

    Question simple Array question

    Hi!
    Could you tell me how to add something to an array?
    I got an array like that:

    string[] strings= new string[]{"a","b","c"};

    now I want to add a "d" into the array, how?

    Thanks very much.

  2. #2

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252
    Sorry, found out myself,
    I use (pseudo-code):

    using System.Collections;
    ArrayList list = new ArrayList();
    list.Add(something);

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