Board index » delphi » ADO fields types and common field types?

ADO fields types and common field types?

ADO datasets produce TWideStringField and TBCDField persistent fields, but
it leads to full ADO dependence in my thin client's forms (Midas). I want to
contunue use common TStringField and TFloatField in my apps. When i manually
change TWideString and TBCDField on TStringField and TFloatField in form's
dfm file it works fine, but i want to know:
-is it correct ?
-any correct automatisation?
-any another correct way?

al-dr

 

Re:ADO fields types and common field types?


Quote
Al-dr Petroff <APet...@ase.ru> wrote in message

news:825p8b$66g8@forums.borland.com...

Quote
> -is it correct ?
> -any correct automatisation?
> -any another correct way?

I'm surprised it works.  You can set the EnableBCD property to false on the
TADODataSet and that will force it to use TFloatField instead of TBCDField.  Also,
if you use the Jet 3.51 provider (assuming you are using Access 97), then it will
return char fields as TStringField instead of TWideString fields.

Mark

Other Threads