My problem is the following. I have a *.dbf file with float fields defined. All of them are of certain precision and I see it in the Database Desktop.
I need to format the TDBEdit components connected to the table so that they display trailing zeros. For example, if the precision of the field is 4 and the field contains 1.23, I need 1.2300 to be displayed.
How can I do that? I tried setting up the EditMask for the Table fields, but there are the following problems:
- The mask works only when the field is being edited and I need it to be always displayed with trailing zeros
- I cannot figure out the precision of the field run-time, it always equals 0. Why?
Any help is very much appreciated. Thanks in advance!