M
Microsoft News Group
I am trying to get a value from the MIN column in my database. I can not
seem to get the IF statement to be true, even thou my debugging says the
column value is 0, but it is not hitting the return true. Is there anyway
to get the column value to test it to equal zero.
public static bool GetPriceRangesByMin()
{
using(DataTable table = GetPriceRanges())
{
foreach (DataRow row in table.Rows)
{
if(row["Min"].Equals(0))
{
return true;
}
}
return false;
}
}
seem to get the IF statement to be true, even thou my debugging says the
column value is 0, but it is not hitting the return true. Is there anyway
to get the column value to test it to equal zero.
public static bool GetPriceRangesByMin()
{
using(DataTable table = GetPriceRanges())
{
foreach (DataRow row in table.Rows)
{
if(row["Min"].Equals(0))
{
return true;
}
}
return false;
}
}