Page 1 of 1

modify a gate value

Posted: Fri Oct 07, 2011 10:07 am
by mathias
I have to modify a gate value on a touchscreen.
Is there a code that, every time you press a button, the gate value increases with 1?

Re: modify a gate value

Posted: Fri Oct 07, 2011 10:19 am
by admin
Yes, use this code:

Function void Plus()
string GateName = "Test";
int GateNId = 1;
SetNumGateValue(GateName, GateNId, GetNumGateValue(GateName, GateNId) + 1);
end

Best regards