This is the code:
string firsttag = """;
string endtag = "","";
int start;
int end;
for (int i = 0; i < images.Length; i++)
{
start = images.IndexOf(firsttag);
end = images.IndexOf(endtag, start);
string h = images.Substring(start + firsttag.Length, end - start - firsttag.Length);
start = images.IndexOf(firsttag, end + 1);
}
This is the string content:
"http://www.niederschlagsradar.de/images.aspx?jaar=-6&type=europa.cld&datum=201311161500&cultuur=en-GB&continent=europa","http://www.niederschlagsradar.de/images.aspx?jaar=-6&type=europa.cld&datum=201311161800&cultuur=en-GB&continent=europa"
What i get in the variable h is:
http://www.niederschlagsradar.de/images.aspx?jaar=-6&type=europa.cld&datum=201311161500&cultuur=en-GB&continent=europa
But im getting in any loop/itertion the same line/string what i want to do is to get all the links from the variable images then i will do map.Images.Add(link); so in the end Images(List) will contain only the links from the string without the " and the , chars.
My question is why in the next itertion i get the same link parsed string and not the next one untill the last one ? And i want to use indexof and substring.
In general im getting the link the first one without the chars " and ,
But i dont get the next one untill the end it keep giving me the same one all the time.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…