TCPmaker : Visual Tour    How Variables and Controls Work Together  

You also created the Pushbutton control in the Visual Page Designer, and when you set the control's properties, you associated a specific Variable like D1 with the control.  In the case of the Pushbutton control, you did this by setting the control's i property to the Id of the Integer variable D1 (by simply selecting the name of the Variable from a drop down list).

By associating an Integer Variable with a Pushbutton Control, this tells run.swf that any time you press or release this particular Pushbutton control, the PC must set the value of the associated Integer Variable (D1 in this case), and then send a message to the micro device which contains this associated Variable. 

This happens automatically: you don't need to write any code to make this happen.

 
  

4 of 12
Copyright Notice and Author Information