Menu

wish: actualize TFloatField.Precision

2005-03-20
2013-03-08
  • Burov Dmitry

    Burov Dmitry - 2005-03-20

    Can TFloatField.Precision be set after the header of dbf-file ?
    Perhaps MinValue, MaxValue and DisplayWidth too.

     
    • Micha Nelissen

      Micha Nelissen - 2005-03-20

      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

       
    • Burov Dmitry

      Burov Dmitry - 2005-03-21

      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!

       
    • Micha Nelissen

      Micha Nelissen - 2005-03-21

      From what delphi version is MinValue/MaxValue defined ? I can't find it in my bcb 5 help docs.

      Micha

       
    • Burov Dmitry

      Burov Dmitry - 2005-03-21

      Use them - and wait bugreports 'can't compile in D3/D4' :D

      I can only say that D5 contains them.

       
    • Micha Nelissen

      Micha Nelissen - 2005-04-11

      I haven't got a clue how to do this. The TFields are made in TDataSet, not by me.

      Micha

       

Log in to post a comment.

MongoDB Logo MongoDB