• Re: Determining database filename from alias

    From Enrico Maria Giordano@21:1/5 to All on Tue Jan 2 09:43:00 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)