| View previous topic :: View next topic |
| Author |
Message |
Wei Wang Guest
|
Posted: Mon Aug 23, 2004 12:05 pm Post subject: How do I pass TADOConnection instance from one Form/Unit to |
|
|
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
|
Posted: Mon Aug 23, 2004 12:16 pm Post subject: Re: How do I pass TADOConnection instance from one Form/Unit |
|
|
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
|
Posted: Mon Aug 23, 2004 12:52 pm Post subject: Re: How do I pass TADOConnection instance from one Form/Unit |
|
|
adoconnection2.connectionobject:=adoconnection1.connectionobject;
--
Arthur Hoornweg
(please remove the ".net" from my e-mail address)
|
|
| Back to top |
|
 |
Wei Wang Guest
|
Posted: Mon Aug 23, 2004 1:33 pm Post subject: Re: How do I pass TADOConnection instance from one Form/Unit |
|
|
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
|
Posted: Mon Aug 23, 2004 1:40 pm Post subject: Re: How do I pass TADOConnection instance from one Form/Unit |
|
|
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 |
|
 |
|