1. 程式人生 > >遭遇 'Value of field 'A1' is out of range ...

遭遇 'Value of field 'A1' is out of range ...

現象 報錯  'Value of field 'A1' is out of range ...

原因型別匹配,sum後的欄位基本系統自動認定為浮點型別,delphi中儘量BCDEnable 設定成false(遇到幾次delphi對BCD的處理的bug,不敢再用了),用float型別來表示浮點數。