Click here to Skip to main content
15,911,646 members

Comments by farrukh.javeid (Top 9 by date)

farrukh.javeid 6-Nov-11 10:58am View    
As much as it pains me to say that I have been there and I have done that but to no avail. Do you mind If I can send you the code so that you can check it yourself as well because I have checked everything in my knowledge, as well as all the suggestions that I receive.
farrukh.javeid 6-Nov-11 4:39am View    
Hi,

Thanks for your time. I hope you have understood my problem by now. But I have checked the values myself. The values are extracted properly but when it comes to inserting the values, my system somehow forgets where it was.
Please check the screen shot of the problem:
http://www.postimg.com/image/52000/photo-51245.jpg

Thanks.
farrukh.javeid 6-Nov-11 4:37am View    
Hi Bill,

Thanks for your time. This is a brilliant solution but I am still experiencing the same problem. Please check out the screen shot of the problem I am experiencing. I hope that will clear more things out.
http://www.postimg.com/image/52000/photo-51245.jpg

Right now this is for Array but same problem goes for List as well.
Looking forward to hear from you Bill.

Thanks.
farrukh.javeid 5-Nov-11 20:45pm View    
Well this the instantiation

//List<string> URL_List = new List<string>();
string[] URL_List = new string[1000];

and the part for inserting the values is

bool IsValid = true;

foreach (string curr in URL_List)
{
if (curr != null)
{
if (curr.Trim() != "")
{
if (curr == URL)
{
IsValid = false;
break;
}

}
else
{
IsValid = false;
}
}
}

if (IsValid == true)
{
//URL_List.Add(URL);
URL_List[ListCounter] = URL;
ListCounter++;
}

I am sorry the code looks a bit vague but I have tested the code by debugging it. The value is passed rightfully but is not inserted in the list or the array.
farrukh.javeid 5-Nov-11 20:33pm View    
yes, but I can't figure out the error. There is no obvious reason for the error so that is why I posted it on the code project.