🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
3 messages
3 total messages Started by Avex Wed, 28 Mar 2001 02:56
build ConnectionString
#5650
Author: Avex
Date: Wed, 28 Mar 2001 02:56
10 lines
1039 bytes
Hi all,

How can I build ConnectionString by myself as when I execute
the property 'ConnectionString' of TADOConnection componet?

In other words , Can I call the Build ConnectionString UI of TADOConnection
?


Sincerely
Re: build ConnectionString
#5652
Author: Mark Cashman
Date: Wed, 28 Mar 2001 03:15
20 lines
1527 bytes
I believe PromptDataSource is the function you need. Have a look in
adodb.pas

function PromptDataSource(ParentHandle: THandle; InitialString:
WideString): WideString;

is the signature; the parent handle is the handle of the window that the
dialog should use as the parent - the Application or main form are fine
for this.

I hope this helps.

------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Re: build ConnectionString
#5663
Author: J. R. Antley
Date: Thu, 29 Mar 2001 08:08
8 lines
1062 bytes
Hi Avex,

I use the IDataSourceLocator wizard available in OLEDB32.DLL to do this.  It
took me some time to figure out, but it works well.

Contact me directly if interested.

JR
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads