Article View: borland.public.cppbuilder.database.ado
Article #3432Re: Allow User To Select Data Source?
From: MarkR
Date: Wed, 21 Aug 2002 00:53
Date: Wed, 21 Aug 2002 00:53
34 lines
1821 bytes
1821 bytes
try
{
DatabaseConString->Text = ADODB->PromptDataSource(Self.Handle,
DatabaseConString->Text);
}
catch(...)
{
Application->MessageBox("Error Occured Editing Connection
String","Error");
}
"Charlie Grosvenor" <charliemail@cgrosvenor.co.uk> wrote in message
news:83dtja.9u5.ln@213.152.39.138...
> Hi
> In my application i require the user to be able to to select the ADO
> data source to use. In delphi i can do it like this:
>
> Try
> DatabaseConString.text :=
> ADODB.PromptDataSource(Self.Handle, DatabaseConString.text);
> Except
> Application.MessageBox('Error Occured Editing Connection
> String','Error');
> end;
>
> I am now using CPP Builder version 6 and would like to know how I can
bring
> up this dialog in CPP Builder?
>
> Thank you
>
> Charlie
>
>
Technical Details
Message-ID:
<3d62e472$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<83dtja.9u5.ln@213.152.39.138>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,dc9e4e2a2990d6c0 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-08-20 18:08:23 PST From: "MarkR" <mark.richards8@wapthespamntlworld.com> Newsgroups: borland.public.cppbuilder.database.ado References: <83dtja.9u5.ln@213.152.39.138> Subject: Re: Allow User To Select Data Source? Date: Wed, 21 Aug 2002 01:53:05 +0100 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 213.107.142.213 Message-ID: <3d62e472$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1029891186 213.107.142.213 (20 Aug 2002 17:53:06 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail