[Message Deleted]
C#
7
Posts
4
Posters
0
Views
1
Watching
-
rTB2.Clear(); int i = 0; string s = rTB1.Text; string substr = ""; switch(rTB1.Text) { case '"': { while (i < s.Length && s[i]!='"' && s[i]!='\n') { substr += s[i]; i++; } rTB2.Text += "String - " + substr + "\n"; substr = ""; }break; }
-
a very simple method is to get the first index of " (opening quotes) and then get the next index of the " (closing quotes) and the get the substring within those indices Regards, Pramod
-
I guess You are right, but I mess up something so i could not use that way of solving the problem. If you could give me an example, will be appreciated. Regards, Mitko -- modified at 5:29 Tuesday 7th March, 2006