this is the condition:
- Code: Select all
with IWCGJQEdit3 do begin
datalink.dataSource := ServerController.UserSession.DataSource1;
datalink.FieldName := 'val';
FormatOptions.Enable := True;
FormatOptions.AllowNegative := False;
FormatOptions.AutoFix := True;
FormatOptions.Precision := 0;
FormatOptions.Type_ := ftDecimal;
end;
When execute ServerController.UserSession.DataSource1.Post and the field 'val' (connected to IWCGJQEdit3 ) is NULL, an EConverError exception is fired with the
Note |
---|
"" is not a valid floating point value |
I know that
but I think that if the field is null no exception must be fired...since 3.5.0.210, the component is using the system FormatSettings to convert string to float
Best Regards, Alfredo.