Article View: borland.public.cppbuilder.database.ado
Article #639Re: 'Could not convert variant of type (Null) into type (String)'
From: Vladimir Stefanovic
Date: Fri, 13 Jan 2006 17:04
Date: Fri, 13 Jan 2006 17:04
46 lines
2064 bytes
2064 bytes
> Thanks a lot. It`s works.Thank you, thank you, > thank you;-). Great :) > What`s the name of property where i adding all fields > from my table(just like tou say)? Sorry, can you be more speciffic? (You just add the fields at design-time, and you do not need anything else with them at run-time) In fact you can make an app without adding those fields at all but you may experience some difficulties, as you already noticed. > How I can do it from application code?Any function or > somethink? Why do you need that? I suppose that you can do something like this: --- example from BCB6 help (for SQLDataSet, but must be the similar for ADO) --- SQLDataSet1->Close(); TFloatField *T = new TFloatField(SQLDataSet1); T->Precision = 2; T->FieldName = "Amount"; T->Name = SQLDataSet1->Name + T->FieldName; T->Index = SQLDataSet1->FieldCount; T->DataSet = SQLDataSet1; SQLDataSet1->FieldDefs->UpDate(); SQLDataSet1->Open(); But yiu do not need that at all. -- Best regards, Vladimir Stefanovic
Technical Details
Message-ID:
<43c7dd0f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43c78184@newsgroups.borland.com> <43c7b653$1@newsgroups.borland.com> <43c7d7ad$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,675aba66c3209cb7 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.database.ado References: <43c78184@newsgroups.borland.com> <43c7b653$1@newsgroups.borland.com> <43c7d7ad$3@newsgroups.borland.com> Subject: Re: 'Could not convert variant of type (Null) into type (String)' Date: Fri, 13 Jan 2006 18:04:36 +0100 Lines: 48 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 213.137.116.230 Message-ID: <43c7dd0f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1137171727 213.137.116.230 (13 Jan 2006 09:02:07 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail