class EVariantTypeCastError with message 'Could not convert variant of type (String) into type (Double)

前端 未结 3 1304
暖寄归人
暖寄归人 2021-01-20 20:32

Using Delphi and FastReport I get this error message while debugging inside Delphi immediately after this line:

.ShowReport(true)         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-20 21:05

    I had a similar issue in FastReport. In my case, it was a wrong Format applied to a MemoView. I could find the name of the offending component this way:

    • Use Break to stop the execution
    • In the Call Stack panel, find the latest call from a fastreport class (in my case: frxClass.TfrxCustomMemoView.FormatData(...) and double click it.
    • if you don't have the source code od Fast Report, a dialog appears - just hit Cancel
    • in Local Variables panel, you will probably see name of the offending component / value / format.

提交回复
热议问题