B
Boki
Hi All,
In order to remove 2 lines of a string, I write this:
/* BEGIN */
first_line_location = temp_string.IndexOf(Environment.NewLine);
temp_string = temp_string.Substring(first_line_location +
2, temp_string.Length - first_line_location - 2);
first_line_location =
temp_string.IndexOf(Environment.NewLine);
temp_string = temp_string.Substring(first_line_location +
2, temp_string.Length - first_line_location - 2);
textBox1.Text =temp_string;
/* END */
Even it can be put in a single function call, but I believe there is a
simpler way to do this, but I fail to implement it, could you advice ?
Thanks!
Best regards,
Boki.
In order to remove 2 lines of a string, I write this:
/* BEGIN */
first_line_location = temp_string.IndexOf(Environment.NewLine);
temp_string = temp_string.Substring(first_line_location +
2, temp_string.Length - first_line_location - 2);
first_line_location =
temp_string.IndexOf(Environment.NewLine);
temp_string = temp_string.Substring(first_line_location +
2, temp_string.Length - first_line_location - 2);
textBox1.Text =temp_string;
/* END */
Even it can be put in a single function call, but I believe there is a
simpler way to do this, but I fail to implement it, could you advice ?
Thanks!
Best regards,
Boki.