🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1227

Re: Find Database in Directory

#1227
From: Kim Hellan
Date: Mon, 10 Apr 2000 00:00
45 lines
2102 bytes
Hi Brian

Just to make things clear....
In Paradox, a "database" is a directory and each table in that database is
represented as a *.db file.
So what you are searching for is a table and not a database....right?

If you are not already using aliases, well.....then you should. Do not
operate directly on file names (table names).
If you then want to check for the existence of a specific table, you can use
a TTable component.
Set TTable::DatabaseName = "MYALIAS" and check out the TTable::Exists()
method.

Write again if this doesn't help you.

Kim Hellan


"Brian Phillips" <bphillip@csc.sctboces.org> wrote in message
news:38EE16D5.3CF8@csc.sctboces.org...
> ---------------------------------------------------------
> Hi Kim;
>        I'm useing a Paradox database to start with.
> -------------------------------------------------------------
> Kim Hellan wrote:
>
>  I'm not sure what you are trying to do......
> Why are you operating on directories and not aliases?
> I assume that you are using BDE and aliases?
> Are you trying to connect to a database or open a table?
> What database are we talking about (Paradox, MS Access)?
>
> Kim Hellan
>
> "Brian Phillips" <bphillip@csc.sctboces.org>
>
> Here is what I want to do :
>
> String tempDBFname;
> tempDBFname = User input database name;
> if ( tempDBFname = is in the current working directory )
>     open exsisting database;
>    else
>      open new database called tempDBFname;
Technical Details
Message-ID: <8crusn$mdn2@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38ED19C9.539D@csc.sctboces.org> <8ck1ei$8ja3@bornews.borland.com> <38EE16D5.3CF8@csc.sctboces.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,4b589a27a3623b4
X-Google-Attributes: gidfcd2b,public
From: "Kim Hellan" <khe@dksign.dk>
Subject: Re: Find Database in Directory
Date: 2000/04/10
Message-ID: <8crusn$mdn2@bornews.borland.com>
X-Deja-AN: 609002148
References: <38ED19C9.539D@csc.sctboces.org> <8ck1ei$8ja3@bornews.borland.com> <38EE16D5.3CF8@csc.sctboces.org>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.cppbuilder.database.multi-tier