Article View: borland.public.cppbuilder.database.ado
Article #71Re: Crate a MS Access database at runtime
From: Verne H. Bohlender
Date: Wed, 12 Dec 2007 03:01
Date: Wed, 12 Dec 2007 03:01
42 lines
2510 bytes
2510 bytes
Hi Mark, I think you're the fellow I need to talk to about my experimental Telephone program I'd like to play with to teach myself more VCL stuff. I know full well how to made the database and in fact have but need to know the items I need on the form to use the 'base'. I like the suggestions you make to Crate on making same but what I need is to know just a little more than you show here. e.g. I need what from the DATABASE item list and TEdit boxes ?? plus the code for just a couple would surely help me. If I can get to read one name that will help me to build almost anything after that. I've used Visual Basic quite a bit in the past but love working with Borland now. Verne On Mon, 10 Dec 2007 18:34:28 -0000, "Mark Richards" <markcr@wapthespamntlworld.com> wrote: >> CatalogPtr cat = CoCatalog::Create(); >> cat->Create(strConn); > >How do I set strConn to custom values? > >On a TForm i have several controls, which the user can enter details about >where to create the new database > >TEdit txtDatabasepath Fully qualified file name entered here >TEdit txtUserName User name is entered here >TEdit txtPassword Password is entered here >TCheckBox chkEncrypt If Checked then the database should be encrypted > >So for example >txtDatabasepath->Text = "f:\risks\rsisks01.mdb"; >txtUserName->Text = "boris"; >txtPassword->Text = "letmein"; >chkEncrypt->Checked = true; > >What would I need to do to build the strConn for this? > >
Technical Details
Message-ID:
<qejul3dljp6g6ab4ujs8s2kor0hhbq595b@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47598d82$1@newsgroups.borland.com> <475a8e59$1@newsgroups.borland.com> <475d86a4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,2cb0116f91136979 X-Google-Attributes: gid10698b,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Verne H. Bohlender <verneb@sympatico.ca> Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: Crate a MS Access database at runtime Date: Tue, 11 Dec 2007 22:01:54 -0500 Message-ID: <qejul3dljp6g6ab4ujs8s2kor0hhbq595b@4ax.com> References: <47598d82$1@newsgroups.borland.com> <475a8e59$1@newsgroups.borland.com> <475d86a4$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.8/32.553 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.93.81.27 X-Trace: newsgroups.borland.com 1197428509 65.93.81.27 (11 Dec 2007 19:01:49 -0700) Lines: 43 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail