TCPmaker : Visual Tour TCPmaker Screen Controls |
A String variable has a text property s that contains a string. This property could contain a simple string like "Volts," or it could contain a C-style format string like this:
"%5.3f Volts"
This string variable also has a property v that contains an argument list that is supposed to provide the Ids of the variables needed by the format statement. In this case, v would contain the following string:
"n0"
At the moment, the Numeric variable "Pot1" whose Id is "n0" has the following property values:
On the PC, the Numeric variable automatically scales the value to 2.353, and the string variable Sv0 whose Id is "s0" uses the format string in its property s to display "2.353 Volts" on this particular Horizontal Slider control.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |