🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO Connection String Dialog

#5269
From: David Harper
Date: Thu, 28 Jun 2001 04:21
12 lines
1345 bytes
Here is a way to do it without using header files, 
you can wrap it up into a function for reuse:

  Variant adoConnection = Variant::CreateObject("ADODB.Connection");
  Variant DataLinks         = Variant::CreateObject("DataLinks");

  adoConnection.Exec(PropertySet("ConnectionString") <<  
	 WideString(connectionString));

  if (DataLinks.Exec(Function("PromptEdit") << adoConnection))
    connectionString =  
	String(adoConnection.Exec(Function("ConnectionString")));
Technical Details
Message-ID: <5mbljtc2s712hf1q45u9ho82efkr09joh1@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3b282dc6$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,58a00fab3e23b47
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-06-27 21:24:29 PST
From: David Harper <david@shayrain.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: ADO Connection String Dialog
Date: Thu, 28 Jun 2001 12:21:31 +0800
Reply-To: david@shayrain.com
Message-ID: <5mbljtc2s712hf1q45u9ho82efkr09joh1@4ax.com>
References: <3b282dc6$1_1@dnews>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 203.59.170.45
X-Trace: dnews 993702066 203.59.170.45 (27 Jun 2001 21:21:06 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews