🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5203

Re: Connection String Dialog

#5203
From: david
Date: Tue, 03 Jul 2001 10:44
68 lines
2653 bytes
sorry Formentz !!

it was indeed PromptDataSource and not PromptConnectionString this is my own
wrapper !!

david

Giuliano <gcardinali@remove.adhoc.net> wrote in message
news:3b418b65.232864301@newsgroups.borland.com...
> On Tue, 3 Jul 2001 10:10:58 +0200, "Formentz" <francesco@leotron.com>
wrote:
>
> >Hi all,
> >how can I display the connection string dialog to the user?
> >Someone suggested me a PromptConnectionString function, but I wasn't able
to
> >find it.
> >
> >TIA
> >Ciao
> >    Formentz
> >
>
> You have to use 'PromptDataSource' function. Try with something
> like the following code:
>
>
file://---------------------------------------------------------------------
------
> 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);
> };
>
file://---------------------------------------------------------------------
------
> extern PACKAGE TfrmConfigGen *frmConfigGen;
>
file://---------------------------------------------------------------------
------
>
> .....
> .....
>
> #include <AdoDB.hpp>
>
>
file://---------------------------------------------------------------------
------
> void __fastcall TfrmConfigGen::btnConnectionStringClick(TObject *Sender)
> {
>     edtConnectionString->Text =
>         PromptDataSource( (THandle)Handle, edtConnectionString->Text );
> }
>
file://---------------------------------------------------------------------
------
>
> Ciao!
>
> Giuliano
Technical Details
Message-ID: <3b41a1f5$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <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 03:48:32 PST
From: "david" <ddegreef@hotmail.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 12:44:03 +0200
Lines: 70
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 194.119.248.66
Message-ID: <3b41a1f5$1_2@dnews>
X-Trace: dnews 994157045 194.119.248.66 (3 Jul 2001 03:44:05 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews