<<

Contents

Search

>>

 

GET_DATABASE_NAME$

 

 

Function

 

 

Syntax:

GET_DATABASE_NAME$(<Name of Index File>)

 

<Name of Index File> = <INDEXFILE>

 

Meaning:

Returns the name of the database in which the Index File was opened, if the file type of the Index File is J (JDBC).

 

If <Index file name> is no JDBC Index File, GET_DATABASE_NAME$ returns the physical name of the Index File.

 

GET_DATABASE_NAME$ returns the empty string "" if an error occurs.

 

If an error occurs, the variable OK contains the error number and the function JDBC_GET_LAST_ERROR$ returns the error text.

 

Parameter:

Name of Index File

Name of Index File

 

Sample:

DB_NAME$ = GET_DATABASE_NAME$(CUSTOMER)

IF OK <> 0

THEN ERRORMES = JDBC_GET_LAST_ERROR$

ENDIF

 

See also:

JDBC_GET_DATABASE_NAME$

JDBC_DRIVER

JDBC_DATABASE

JDBC_TABLE

JDBC_USERID

JDBC_PASSWORD

JDBC_MODE