View Single Post
Old Mar 31st, 2008, 8:25 AM   #3
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 308
Rep Power: 2 Jabo is on a distinguished road
Re: Help Indexing ArrayList

I tried to convert this to C# but I don't know enough about it to really do it.

c# Syntax (Toggle Plain Text)
  1. private void button1_Click(object sender, EventArgs e)
  2. {
  3. string str1 = "xyz,pbb7,rx78";
  4. string[] str2=new string[]{str1.Split",");
  5. for (int p = 0; p < str2.Length; p++)
  6. {
  7. label1.Text = str2[p]+"\n";
  8. }
  9. }

I get all kinds of errors about my strings and arrays, but maybe it'll help you out at least a little bit.
Jabo is offline   Reply With Quote