2
Answers

Error on int in if statement

A Repasky

A Repasky

11y
1.2k
1
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