my quess is Expr1Column is the name of a function, if that is correct then you need to add the parentheses
if (LogInfo.Expr1Column() > 0)
Ancient Dragon
Retired & Loving It
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
It's basically the column name for the query below (typed dataset).
One thing I know for sure is that I'm not smart enough to use typed datasets. They've given me so much trouble that I'm more productive when I write the underlying code for them manually. :rolleyes:
But! The problem is that Expr1Column evaluates to a DataColumn object and it's not compatible with int. I can't really figure out why you're tryin' to compare a column with an integer, the only thing I can think of is that the count is the name of the column and you're tryin' to see if it's bigger than 0. If that's how it is then this'll work.
int result = Convert.ToInt32(LogInfo.Expr1Column.ColumnName);
if (result > 0)
I can't begin to imagine why you would want to do somethin' like that though. :p
Inanna
Junior Poster in Training
90 posts since Oct 2006
Reputation Points: 53
Solved Threads: 6