Getting float field precision runtime
Posted on 2004-08-04
I have the following problem.
I use TTable component to connect to dbf file, previously created with Database Desktop (thus I consider it correct). I have a float-type field in the table and I need to get the precision of the field runtime. Whatever I do I don't receive the expected result:
1. Precision := TFloatField(Table.Fields.FindField('smth')).Precision
Returns default precision value (15) but not the one I specified in the dbf file.
How should I get the precision (and size) values for table fields?
Thanks in advance!