Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

All language designers are arrogant. Goes with the territory... -- Larry Wall


devel / comp.lang.xharbour / Re: Determining database filename from alias

SubjectAuthor
* Determining database filename from aliascgallery
`- Re: Determining database filename from aliasEnrico Maria Giordano

1
Determining database filename from alias

<58a617f6-9c72-4d48-9993-4c13dae4dce2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18247&group=comp.lang.xharbour#18247

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:4e84:0:b0:428:2585:8e9d with SMTP id 4-20020ac84e84000000b0042825858e9dmr320529qtp.0.1704158586329;
Mon, 01 Jan 2024 17:23:06 -0800 (PST)
X-Received: by 2002:a05:6871:3411:b0:1fa:db12:ed96 with SMTP id
nh17-20020a056871341100b001fadb12ed96mr2113804oac.5.1704158585977; Mon, 01
Jan 2024 17:23:05 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 1 Jan 2024 17:23:05 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=23.118.44.211; posting-account=gAvzlgoAAAA9Xsy5KECVJvLp_mA8cyKr
NNTP-Posting-Host: 23.118.44.211
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <58a617f6-9c72-4d48-9993-4c13dae4dce2n@googlegroups.com>
Subject: Determining database filename from alias
From: cgallery@gmail.com (cgallery)
Injection-Date: Tue, 02 Jan 2024 01:23:06 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1485
 by: cgallery - Tue, 2 Jan 2024 01:23 UTC

Hello.

I'm using this version:

Harbour 3.2.0dev (Rev. 18432)
Copyright (c) 1999-2012, http://harbour-project.org/

I'm interested in determining the underlying filename of a database being accessed by an alias.

So...

use temp3234 alias temp

Is it possible to derive "temp3234" from "temp?"

I've looked through the online manuals but I can't find a function that allows me to find the original filename once I've assigned it an alias.

Thank you in advance.

Happy New Year!!!

Re: Determining database filename from alias

<un0iaj$2jdn3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18248&group=comp.lang.xharbour#18248

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Determining database filename from alias
Date: Tue, 2 Jan 2024 09:43:00 +0100
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <un0iaj$2jdn3$1@dont-email.me>
References: <58a617f6-9c72-4d48-9993-4c13dae4dce2n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 2 Jan 2024 08:43:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6d47cbd3a023b50c61028ec7aea3efba";
logging-data="2733795"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QV4Hdgqz12VaZSr155D/e"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:SpudJqll3LvJe1+SipL4KuDQAQ0=
In-Reply-To: <58a617f6-9c72-4d48-9993-4c13dae4dce2n@googlegroups.com>
Content-Language: it
 by: Enrico Maria Giordan - Tue, 2 Jan 2024 08:43 UTC

Il 02/01/2024 02:23, cgallery ha scritto:

> Hello.
>
> I'm using this version:
>
> Harbour 3.2.0dev (Rev. 18432)
> Copyright (c) 1999-2012, http://harbour-project.org/
>
> I'm interested in determining the underlying filename of a database being accessed by an alias.
>
> So...
>
> use temp3234 alias temp
>
> Is it possible to derive "temp3234" from "temp?"
>
> I've looked through the online manuals but I can't find a function that allows me to find the original filename once I've assigned it an alias.

#include "Dbinfo.ch"

FUNCTION MAIN()

USE CUSTOMER ALIAS TEST

? DBINFO( DBI_FULLPATH )

INKEY( 0 )

RETURN NIL

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor