2
Reply

Error on int in if statement

A Repasky

A Repasky

Jan 19 2013 9:04 PM
1.1k
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.

Answers (2)
Next Recommended Forum