🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1692

Re: Change default field type from TBCDField to TFMTBCDField when using dynamic fields

#1692
From: Yangkai Liu
Date: Wed, 07 Apr 2004 19:08
37 lines
2616 bytes
Thanks a lot, the first one did work.
But on the second solution, I did find the function, changed the Pascal code, but stuck with the dcc32 options and had no idea about subsequent steps.  I have zero experience with Delphi, could you plesae show me how to build my revised Pascal code to make it work?


YangKai Liu

"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote:
>Set TADODataSet.EnableBCD to False and your field will be mapped to ftFloat.
>For more options you may change ADOTypeToFieldType() procedure in ADODB
>unit.
>
>//------------------------------------------
>Regards,
>Vassiliev V. V.
>http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
>ADO.Net
>http://www.oledbdirect.com - The fastest way to access MS SQL Server,
>MS Jet (Access) and Interbase (through OLEDB)
>
>"Yangkai Liu" <yangkai.liu@burkelee.com> ������?�������� ?��������
>��������? news:40737e76$1@newsgroups.borland.com...
>>
>> Hi,
>>
>> I am writing console program which can access MS SQL server and I need
>precision more than 4 digits after the decimal point.  The database field
>type is decimal and there is no way for me to change that.  The dynamic
>field generated has type TBCDField, which has only 4 digits precision after
>the decimal point.  According to document, there is no way to change data
>type for a dynamic field.  Is there any way to make the default data type to
>be TFMTBCDField? Or is there any better soulution?
>>
>>
>> YangKai Liu
>
>
Technical Details
Message-ID: <407443af$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40737e76$1@newsgroups.borland.com> <4073a5d4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,894c32b4470ce710
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-04-07 11:10:30 PST
From: "Yangkai Liu" <yangkai.liu@burkelee.com>
Sender: "Yangkai Liu" <yangkai.liu@burkelee.com>
Reply-To: "Yangkai Liu" <yangkai.liu@burkelee.com>
Subject: Re: Change default field type from TBCDField to TFMTBCDField when using dynamic fields
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 211.76.97.246     
X-Forwarded-For: 210.85.215.235
References: <40737e76$1@newsgroups.borland.com> <4073a5d4$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <407443af$1@newsgroups.borland.com>
Date: 7 Apr 2004 11:08:47 -0800
X-Trace: newsgroups.borland.com 1081361327 207.105.83.66 (7 Apr 2004 11:08:47 -0800)
Lines: 38
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail