Here is an example of what I am doing:<br/>
<br/>
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; try
{
<span style="color:Blue; for (<span style="color:Blue; int i = 0; i <= 9; i++)
{
RTB1.Text = RTB1.Text.Normalize();
x = RTB1.Text.IndexOf(<span style="color:#A31515; "rowspan="3 ", x);
y = RTB1.Text.IndexOf(<span style="color:#A31515; ", y);
RTB1.SelectionStart = x + 15;
RTB1.SelectionLength = y - (x + 15);
<span style="color:Green; //Set the default title of the song
title = RTB1.SelectedText;
[/code]
This line of code doesnt work the way I want it too:<br/>
<br/>
x = RTB1.Text.IndexOf("rowspan="3 ", x)
The following string rowspan="3 is shown many times within the string that I have but for some reason it keeps getting the last index of the string or close to the end instead of the beginning? Why is this happening? <hr class="sig GINtech Systems Owner
View the full article
<br/>
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; try
{
<span style="color:Blue; for (<span style="color:Blue; int i = 0; i <= 9; i++)
{
RTB1.Text = RTB1.Text.Normalize();
x = RTB1.Text.IndexOf(<span style="color:#A31515; "rowspan="3 ", x);
y = RTB1.Text.IndexOf(<span style="color:#A31515; ", y);
RTB1.SelectionStart = x + 15;
RTB1.SelectionLength = y - (x + 15);
<span style="color:Green; //Set the default title of the song
title = RTB1.SelectedText;
[/code]
This line of code doesnt work the way I want it too:<br/>
<br/>
x = RTB1.Text.IndexOf("rowspan="3 ", x)
The following string rowspan="3 is shown many times within the string that I have but for some reason it keeps getting the last index of the string or close to the end instead of the beginning? Why is this happening? <hr class="sig GINtech Systems Owner
View the full article