Description: GaugeFormulaMin defines the lower end of the scale; GaugeFormulaMax defines its upper end. Configure them in the gauge properties. These configuration formulas are hidden from the Events list.
Execution: Both formulas run when gauge settings are applied, including during refresh, before the indicator position is updated. Desktop and web use the same calculation path.
Context: In record-edit mode (dbfmEdit), calculation uses the DBForm parser and current object. Other modes use the global parser without a current object. No event arguments are explicitly supplied; common component-event arguments are not guaranteed. Do not depend on current-record variables outside edit mode.
Result: Each formula must return a number. In edit mode, calculation failure or a nonnumeric result leaves that limit unchanged. In other modes, either case produces zero. A missing formula definition uses 0. Configure an upper limit greater than the lower limit.
Examples: Fixed percentage scale, usable in either calculation context.
GaugeFormulaMin:
Result := 0;
GaugeFormulaMax:
Result := 100;
The indicator value is controlled separately by OnGetValue.