See CVS. I copy it to the FieldDefs now in
GetFieldDefsFromDbfFieldDefs.
Does it work ok ?
Maybe you can try the other properties too. What's the use of the VCL knowing MinValue and MaxValue ? I don't know what DisplayWidth has to do with 'physical' data ?
Micha
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can TFloatField.Precision be set after the header of dbf-file ?
Perhaps MinValue, MaxValue and DisplayWidth too.
See CVS. I copy it to the FieldDefs now in
GetFieldDefsFromDbfFieldDefs.
Does it work ok ?
Maybe you can try the other properties too. What's the use of the VCL knowing MinValue and MaxValue ? I don't know what DisplayWidth has to do with 'physical' data ?
Micha
Maybe DisplayWidth has nothing to phisical data, but this property seems to be most likely.
MinValue and MaxValue, i think, are requred, since DBF stores numbers in text form.
So, for example, Numeric-4 and Numeric-3 are both SmallInt, but their max and min are quite different!
From what delphi version is MinValue/MaxValue defined ? I can't find it in my bcb 5 help docs.
Micha
Use them - and wait bugreports 'can't compile in D3/D4' :D
I can only say that D5 contains them.
I haven't got a clue how to do this. The TFields are made in TDataSet, not by me.
Micha