Make TOraNumberField.GetAsVariant return a numeric variant type
Currently, the function TOraNumberField.GetAsVariant returns a variant of String type:
Result := AsNumber.AsString;
As a result, data accessed by AsVariant method cannot be processed numerically with 3rd-party data bound components such as DevExpress TcxGridDBChartView.
A change like this or similar would do:
try
Result := AsNumber.AsFloat;
except
on E: Exception do
Result := variants.null;
end;
It allows data to be displayed in Devexpress chart views that read numeric data as variant.
3
votes
Holger Heidenbluth
shared this idea