Type mismatch for field 'xxxxxx', expecting: Float actual: Single.
Posted: Thu 23 May 2013 21:19
I have a project that I'm converting from Delphi XE to Delphi XE3, and am using your SDAC components.
One form has a TMSTable component with a field that is defined as TFloatField mapped to to SQL Server field of type Real. Everything worked fine in Delphi XE but now, when I open the TMSTable component it returns the following error:
Type mismatch for field 'HLSOFPerc', expecting: Float actual: Single.
If I open the .DFM file in text editor and change the type to TSingleField, then it works. How come this has changed? What is the quickest way to fix this problem, as my projects have many forms with TMSTable components and TMSQuery components that have TFloatFields that may be mapped to SQL Real type field.
One form has a TMSTable component with a field that is defined as TFloatField mapped to to SQL Server field of type Real. Everything worked fine in Delphi XE but now, when I open the TMSTable component it returns the following error:
Type mismatch for field 'HLSOFPerc', expecting: Float actual: Single.
If I open the .DFM file in text editor and change the type to TSingleField, then it works. How come this has changed? What is the quickest way to fix this problem, as my projects have many forms with TMSTable components and TMSQuery components that have TFloatFields that may be mapped to SQL Real type field.