PC Review


Reply
Thread Tools Rate Thread

append couple of strings into to string []

 
 
juli
Guest
Posts: n/a
 
      2nd Jan 2005
How to append a couple of strings into a string[] in a loop? Thanks a
lot && good evening
 
Reply With Quote
 
 
 
 
Ciaran
Guest
Posts: n/a
 
      2nd Jan 2005
Try using an arraylist

e.g:

ArrayList al = new ArrayList();

al.Add("string1");

al.Add("string2");

al.Add("string3");

al.Add("string4");

al.Add("string5");

string[] mystrings = (string[])al.ToArray(typeof(string));


Ciaran

"juli" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How to append a couple of strings into a string[] in a loop? Thanks a
> lot && good evening



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      2nd Jan 2005
Juli,

Assuming that is your question, the oposite methode from the Split is the
Join

http://msdn.microsoft.com/library/de...sjointopic.asp

I hope this helps?

Cor


 
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
Cut One String Into Multiple Strings BusyProfessorFromBremen Microsoft Access VBA Modules 1 9th Jun 2009 01:27 PM
Strings, a couple of questions like difference between += and &= James Microsoft VB .NET 3 4th Oct 2006 02:53 PM
RE: Writing Source Code: How to exptend a string over a couple of lines? John Wadie Microsoft C# .NET 1 6th Sep 2004 08:06 PM
Re: Writing Source Code: How to exptend a string over a couple oflines? Russ Gray Microsoft C# .NET 0 6th Sep 2004 04:56 PM
Writing Source Code: How to exptend a string over a couple of lines? Matthias S. Microsoft C# .NET 0 6th Sep 2004 04:50 PM


Features
 

Advertising
 

Newsgroups
 


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