BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TAdoData1 DataSource

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Jeff Howard
Guest





PostPosted: Fri Feb 18, 2005 5:31 pm    Post subject: TAdoData1 DataSource Reply with quote



This is probably a seriously dumb question! I have a master field
relationship between to tables and while importing into the detail table I
want to enhance performance so I want to disable the AdoDataSet2 (detail
table) datasource that points back to the AdoDataSet1 datasource.

The only way that I have been able to switch datasource is to add a third
datasource that points to nothing. Is there a way to set the
AdoDataSet1.DataSource property to nothing like you can at design time?


Back to top
Bill Todd
Guest





PostPosted: Fri Feb 18, 2005 6:07 pm    Post subject: Re: TAdoData1 DataSource Reply with quote



AdoDataSet1.DataSource := nil;

--
Bill Todd (TeamB)
TeamB cannot answer questions received via email
Back to top
Jeff Howard
Guest





PostPosted: Fri Feb 18, 2005 10:42 pm    Post subject: Re: TAdoData1 DataSource Reply with quote



Thanks,
I had tried null but not nil!


"Bill Todd" <no (AT) no (DOT) com> wrote

Quote:
AdoDataSet1.DataSource := nil;

--
Bill Todd (TeamB)
TeamB cannot answer questions received via email



Back to top
yc
Guest





PostPosted: Sat Feb 19, 2005 4:06 pm    Post subject: Re: TAdoData1 DataSource Reply with quote

NULL in C++Builder
In Delphi nil (stands for Not In List)
yc

"Jeff Howard" <jhoward (AT) cubiscan (DOT) com> wrote

Quote:
Thanks,
I had tried null but not nil!


"Bill Todd" <no (AT) no (DOT) com> wrote in message
news:42162ed0$1 (AT) newsgroups (DOT) borland.com...
AdoDataSet1.DataSource := nil;

--
Bill Todd (TeamB)
TeamB cannot answer questions received via email





Back to top
Bill Todd
Guest





PostPosted: Sat Feb 19, 2005 4:51 pm    Post subject: Re: TAdoData1 DataSource Reply with quote

Someone has a vivid imagination. Smile Nil is just the word nil whose
definition is, "nothing; naught; zero; having no value or existence".

--
Bill Todd (TeamB)
TeamB cannot answer questions received via email

yc wrote:

Quote:
In Delphi nil (stands for Not In List)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.