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 

How do I pass TADOConnection instance from one Form/Unit to

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Wei Wang
Guest





PostPosted: Mon Aug 23, 2004 12:05 pm    Post subject: How do I pass TADOConnection instance from one Form/Unit to Reply with quote




I have a TADOConnection instance in MainUnit and want to use this instance in SubUnit1 which is launched by clicking a button on MainUnitForm. How do I pass this instance over?
Back to top
Kevin Frevert
Guest





PostPosted: Mon Aug 23, 2004 12:16 pm    Post subject: Re: How do I pass TADOConnection instance from one Form/Unit Reply with quote



Wei,

I've posted a demo in borland.public.attachments

Good luck,
krf

"Wei Wang" <lzcj (AT) hotmail (DOT) com> wrote

Quote:

I have a TADOConnection instance in MainUnit and want to use this instance
in SubUnit1 which is launched by clicking a button on MainUnitForm. How do I

pass this instance over?



Back to top
Arthur Hoornweg
Guest





PostPosted: Mon Aug 23, 2004 12:52 pm    Post subject: Re: How do I pass TADOConnection instance from one Form/Unit Reply with quote






adoconnection2.connectionobject:=adoconnection1.connectionobject;



--
Arthur Hoornweg
(please remove the ".net" from my e-mail address)
Back to top
Wei Wang
Guest





PostPosted: Mon Aug 23, 2004 1:33 pm    Post subject: Re: How do I pass TADOConnection instance from one Form/Unit Reply with quote

Kevin,

Thanks a lot. One last question: where can I find a complete Delphi API documentation? Just like the one SUN provides for Java: http://java.sun.com/j2se/1.4.2/docs/api/

I can't believe I couldn't find one on Borland website.


Wei Wang


"Kevin Frevert" <Work (AT) drinkingcoffee (DOT) com> wrote:
Quote:
Wei,

I've posted a demo in borland.public.attachments

Good luck,
krf

"Wei Wang" <lzcj (AT) hotmail (DOT) com> wrote in message
news:4129dd7c$1 (AT) newsgroups (DOT) borland.com...

I have a TADOConnection instance in MainUnit and want to use this instance
in SubUnit1 which is launched by clicking a button on MainUnitForm. How do I
pass this instance over?




Back to top
Wei Wang
Guest





PostPosted: Mon Aug 23, 2004 1:40 pm    Post subject: Re: How do I pass TADOConnection instance from one Form/Unit Reply with quote


I found these 2 but there is no API reference of ADO in the first one and very few, almost nothing, in the second one.

http://delphi.about.com/library/rtl/blrtlmain.htm
http://homepages.borland.com/efg2lab/Library/Delphi/

Why on earth is it so difficult to find API documentation for Delphi? It's so frustrating. I can't rely learning everything on reading sample codes? The only way I could find out about API is to look through the autocomplete. ;-)



"Wei Wang" <ww220 (AT) cam (DOT) ac.uk> wrote:
Quote:

Kevin,

Thanks a lot. One last question: where can I find a complete Delphi API documentation? Just like the one SUN provides for Java: http://java.sun.com/j2se/1.4.2/docs/api/

I can't believe I couldn't find one on Borland website.


Wei Wang


"Kevin Frevert" <Work (AT) drinkingcoffee (DOT) com> wrote:
Wei,

I've posted a demo in borland.public.attachments

Good luck,
krf

"Wei Wang" <lzcj (AT) hotmail (DOT) com> wrote in message
news:4129dd7c$1 (AT) newsgroups (DOT) borland.com...

I have a TADOConnection instance in MainUnit and want to use this instance
in SubUnit1 which is launched by clicking a button on MainUnitForm. How do I
pass this instance over?





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.