Article View: borland.public.cppbuilder.database.ado
Article #5205Re: Connection String Dialog
From: Formentz
Date: Tue, 03 Jul 2001 12:46
Date: Tue, 03 Jul 2001 12:46
51 lines
2307 bytes
2307 bytes
Thanks!!
"Giuliano" <gcardinali@remove.adhoc.net> ha scritto nel messaggio
news:3b418b65.232864301@newsgroups.borland.com...
> On Tue, 3 Jul 2001 10:10:58 +0200, "Formentz" <francesco@leotron.com>
wrote:
> You have to use 'PromptDataSource' function. Try with something
> like the following code:
>
>
//--------------------------------------------------------------------------
-
> class TfrmConfigGen : public TForm
> {
> __published: // IDE-managed Components
> .........
> TEdit *edtConnectionString;
> .........
> void __fastcall btnConnectionStringClick(TObject *Sender);
> private: // User declarations
> public: // User declarations
> __fastcall TfrmConfigGen(TComponent* Owner);
> };
>
//--------------------------------------------------------------------------
-
> extern PACKAGE TfrmConfigGen *frmConfigGen;
>
//--------------------------------------------------------------------------
-
>
> .....
> .....
>
> #include <AdoDB.hpp>
>
>
//--------------------------------------------------------------------------
-
> void __fastcall TfrmConfigGen::btnConnectionStringClick(TObject *Sender)
> {
> edtConnectionString->Text =
> PromptDataSource( (THandle)Handle, edtConnectionString->Text );
> }
>
//--------------------------------------------------------------------------
-
>
> Ciao!
>
> Giuliano
Technical Details
Message-ID:
<3b41bd93$2_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3b417d10_2@dnews> <3b418b65.232864301@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,52859a5eacdc7566 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-07-03 05:42:37 PST From: "Formentz" <francesco@leotron.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3b417d10_2@dnews> <3b418b65.232864301@newsgroups.borland.com> Subject: Re: Connection String Dialog Date: Tue, 3 Jul 2001 14:46:13 +0200 Lines: 53 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 62.122.19.190 Message-ID: <3b41bd93$2_2@dnews> X-Trace: dnews 994164115 62.122.19.190 (3 Jul 2001 05:41:55 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews