modify a gate value

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

modify a gate value

Postby mathias » Fri Oct 07, 2011 10:07 am

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
Site Admin
Posts: 339
Joined: Tue Nov 17, 2009 1:18 pm

Re: modify a gate value

Postby admin » Fri Oct 07, 2011 10:19 am

Yes, use this code:

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

Best regards

Return to “Code - Code Builder”

Who is online

Users browsing this forum: No registered users and 1 guest