Menu

Exception in tdbf.internalopen

ainvest
2007-04-23
2013-03-08
  • ainvest

    ainvest - 2007-04-23

    Hi Micha,

    I have just upgraded from 6.48 to 6.91 including updates from trunk. I'm Using Delphi 5 with upd pack 1.

    I get a couple of errors when I open my form - UseFloatFields - which I ignore. When I run the program, I delete an index file, and then try to open a database. But I get an exception; type mismatch for field 'F_TRADED', expecting: Float atual: LargeInt'.

    Stops in dbf.pas, Line 1223:

      BindFields(true);

    - I cannot trace into BindFilds as the exception occurs immidiately.

    how can this happen ?

    Regards, R. Michael
    Author of Amateur Invest
    www.amateur-invest.com

     
    • Micha Nelissen

      Micha Nelissen - 2007-04-23

      Do you have your fields defined with variables on the form/datamodule ? If so, try deleting this particular field and recreating it.

      The UseFloatFields issue was a bit of a stupid thing from me that I don't want to carry on forever, but also cannot get rid off smoothly without a hitch.

      Thanks for your understanding.

       
    • ainvest

      ainvest - 2007-04-24

      I have gotten around the problem, by recreating the database fields as you suggested. - I then had to make some other changes due to int <> float incompatabilities, because the fields are now created as tlargeint fields instead of tfloat.

      Have now encountered a new problem, that wasn't there in 6.48. Fieldvalues['...'] cannot be used for some types.

      I have sent you a test project.

      Regards, R. Michael
      Author of Amateur Invest
      http://www.amateur-invest.com

       

Log in to post a comment.

MongoDB Logo MongoDB