4D v16

DATABASE_PATH

Home

 
4D v16
DATABASE_PATH

DATABASE_PATH  


 

 

DATABASE_PATH()

The DATABASE_PATH function returns the complete pathname of the current database. The current database can be modified using the USE DATABASE command. By default, the current database is the main 4D database.

The pathname returned is in the POSIX format.

Let us suppose that the current external database is named TestBase.4DB and is located in the "C:\MyDatabases" folder. After execution of the following code:

 C_TEXT($vCrtDatabasePath)
 Begin SQL
    SELECT DATABASE_PATH()
    FROM _USER_SCHEMAS
    LIMIT 1
    INTO :$vCrtDatabasePath;
 End SQL

... the $vCrtDatabasePath variable will contain "C:/MyDatabases/TestBase.4DB”.



Siehe auch 

CREATE DATABASE
USE DATABASE

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Functions

 
GESCHICHTE 

 
ARTIKELVERWENDUNG

4D - SQL Reference ( 4D v16)