9. Generating Fields from Predefined Templates : How You Can Add a Generated Field to a Frame : The gauge Field Template : How You Can Customize a Gauge Field
 
Share this page                  
How You Can Customize a Gauge Field
At runtime, the value of the gauge is initialized to its minimum value. To update the current value of the gauge as your frame executes, call the UpdateGaugeValue method for the field. For example:
declare
PercentComplete = float;
enddeclare
{
PercentComplete = RowsProcessed / TotalRows;
MyGauge.UpdateGaugeValue(value =
          PercentComplete);
}