View Single Post
Old Mar 31st, 2008, 8:03 PM   #4
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
Re: Help Indexing ArrayList

Use this code with your variables.... remember to replace the comma in the split call with your delimiter.

C# Syntax (Toggle Plain Text)
  1. string str1 = "xyz,pbb7,rx78";
  2. string[] str2 = str1.Split(',');
  3. for (int i = 0; i < str2.Length; i++)
  4. {
  5. textbox1.Text = str2[i]+"\n";
  6. }
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote