FROM: Bruce Balent
I'm having the same problem using a TwwDataGrid linked to a SQLite database table via a FireDAC TFDtable component with the app running it under Win32. The table has TimeAsStr and TimeAsReal fields with the TimeAsStr field being displayed in the grid for display and editing. The TimeAsStr column in the TwwDataGrid has the following properties:
AutoFill TRUE
ErrorMessage Not a valid time or time format
validationPictureMask [{' ',1}]#;:{0,1,2,3,4,5}#; {AM,PM}
The picture mask appears to work correctly. The TFDtable then fires this column's OnChange event; there I convert the string representation of a time into it's real representation (i.e. TempVariable := StrToDateTime(TimeAsStr.Value)) and store that TempVariable to that record's TimeAsReal field (i.e. a TFloatField). After that event completes successfully without error, the program calls dozens of inherited procedures eventually generating a EvalError; I haven't been able to pinpoint what command in what unit is triggering the error. Once I clear all the error dialogs generated by Delphi and the OS, the TwwDataGrid redisplays with the correct string value showing in the TimeAsStr field. When I look at the database using a database browser (DB Browser for SQLite) the real value representation of the time I just changed appears correct. So I don't know either what is causing the EvalError.
I am using Delphi 10.1 Update2 and FirePowerStudio_71_5_delphiberlin_updates
Delphi and my app are running on a Win7 Pro 64-bit notebook. After posting this, I will send you a zip file with the entire project in case it would help your troubleshooting.
Ditto: what's the fix or workaround for this apparently superflouous error?
Thanks
Bruce