I have this defined in one class:
public
static int ProfCnt = 0;
Then I need to in another class use in an if statement:
if (History.CountProfRec != 0)
But I get error:
Error 1 Operator '==' cannot be applied to operands of type 'method group' and 'int'
Does anyone know what I have to do?
Thanks for the help,
arep.
Loading
A RepaskyPosted Jan 22, 2013, 12:08 AM
if (History.CountProfRec > 0)
arep
Akkiraju IvaturiPosted Jan 19, 2013, 10:31 PM
By the way the code you have provided is not clear. I am answering you based on the error you specified. This error occurs if you call a method with no "()".