Problems with Db Float Fields
Original Reporter info from Mantis: CortelliStefano
-
Reporter name: Stefano
Original Reporter info from Mantis: CortelliStefano
- Reporter name: Stefano
Description:
Using Lazarus and FBDataSet I've meet some problems with Float Fields associated to Db componentes as TDbEdit or TDbGrid:
- If the user delete the content of a a float field (leaving it blank) an arrour occours: '' is not a valid float. Press Ok to ignore and risk data corruption. Press Cancel to kill the program.
I think the problem is that the field is not setted to Null.
- Sometimes, with some numbers, there is a problem of precision and in the edit state the number is shown with a large number of decimals, all return ok when the user exit from the edit state.
For example, the number 69,40 in edit state becomes 69,40000000000001, once the user exit from the edit state, the number returns correct (69,40).
I thought of a bug of FBDataSet component and I post this message in the Uib forum:
http://www.progdigy.com/modules.php?name=Forums&file=viewtopic&t=3589
The author of FbDataSet sais it is a bug of Lazaurs, so I've decided to post the message, hoping this could be useful to you.
Mantis conversion info:
- Mantis ID: 8332
- Version: 0.9.13 (SVN)
- Monitored by: » dopidaniel (Daniel Simões de Almeida)