Fishcake
Mar 19th, 2007, 10:24 AM
It's been a while since I've coded desktop apps but this has really got me confused.
I have an if statement that I can't get in to.if(lvwSearch.Columns[lvwSearch.Columns.Count-1].Text == "CheckOutID")
{
string test = "Why can't i get here!";
} I know that the text of the column is "CheckOutID" and I can even confirm this in the immediate windowlvwSearch.Columns[lvwSearch.Columns.Count-1].Text
"CheckOutID"
lvwSearch.Columns[lvwSearch.Columns.Count-1].Text == "CheckOutID"
true
Yet the if statement doesn't seem to equate it to true and won't execute code contained within.
Any idea's?
I have an if statement that I can't get in to.if(lvwSearch.Columns[lvwSearch.Columns.Count-1].Text == "CheckOutID")
{
string test = "Why can't i get here!";
} I know that the text of the column is "CheckOutID" and I can even confirm this in the immediate windowlvwSearch.Columns[lvwSearch.Columns.Count-1].Text
"CheckOutID"
lvwSearch.Columns[lvwSearch.Columns.Count-1].Text == "CheckOutID"
true
Yet the if statement doesn't seem to equate it to true and won't execute code contained within.
Any idea's?