HTBasic Help
×
Menu
Index

Bars Widget - Values

 
This attribute is a numeric or string array of bar values that is used to fill in the single-bar values in the BARS widget. The values of VALUES are updated from bar number 1 through the number of elements in your VALUES array or the number of single-bars, whichever is the smaller number.
 
The values of VALUES will be displayed with only one digit to the right of the decimal point. For example, if you set a value in the VALUES array to 123.4567, the display will show 123.5. If you set one of the values of  VALUES to 0.0001375, the display will show 1.4E-4.
 
If you need to display numbers in a different way for your application, you can set the values of VALUES as strings in the string array. For example, if you want to display 0.000237 or 4.167E-4, set the appropriate value in the VALUES array to the string "0.000237" or "4.167E-4" in the ASSIGN or CONTROL statement. For example, if you execute
 
         OUTPUT ITEMS$(0) USING "#,ZZZ";5.23456
         CONTROL @W;SET ("VALUES":ITEMS$(*))
 
HTBasic will put "005" in the VALUE attribute for the first bar.