Hi. How do I define a global variable of type int in C# in infopath? I have tried like this
private object _intNoNodes
{
get
{
return FormState["_intNoNodes"];
}
set
{
FormState["_intNoNodes"] = value;
}
}
but i get an error saying that:
Operator '+' cannot be applied to operands of type 'object' and 'int'
when I do something like this:
intNoNodes = intNoNodes+1.
Thank you!