modify a gate value

Discussion about Code Builder Builder and Winlog language support.
Post Reply
mathias
Posts: 18
Joined: Thu Oct 06, 2011 9:40 am

modify a gate value

Post 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?
User avatar
admin
Site Admin
Posts: 373
Joined: Tue Nov 17, 2009 1:18 pm

Re: modify a gate value

Post 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
Post Reply