TCPmaker : Visual Tour    How Variables and Controls Work Together  

Can a single Variable be associated with more than one Control?

Certainly. You can associate a single Integer, Numeric, or String variable with as many different Controls as you like.  There are some very good reasons for doing so:

  • You may want to display the same value in multiple ways, using different kinds of controls.
  • You may want to display the same value on multiple pages of your TCPmaker content layout.
  • You may want to test your layout's behavior by temporarily associating, with many other controls in the layout, a variable that is controlled by a Pushbutton or Horizontal Slider. When you test your layout on the Step 3 tab page of the Visual Page Designer, you'll be able to easily change the value of this test variable, and see how your other controls behave.  Then, when you are satistied, you can associate the correct variables with your controls again before you exit the Visual Page Designer and generate code. 
 
  

12 of 12
Copyright Notice and Author Information