<<

Contents

Search

>>

 

JDBC_GET_DATABASE_NAME$

 

 

Function

 

 

Syntax:

JDBC_GET_DATABASE_NAME$(<File Number>) or

JDBC_GET_DATABASE_NAME$(<Name of Index File)

 

<FileNumber>

= <NUM-EXPRESSION>

<Name of Index File>

= <INDEX FILE NAME>

 

Meaning:

Returns the name of the database, which has been opened with <File Number> or which contains the Index File <Name of Index File>.

 

JDBC_GET_DATABASE_NAME$ returns the empty string "" if an error occurred.

 

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

 

Parameter:

File Number

Number of JDBC database

Name of Index File

Name of Index File

 

Sample:

DB_NAME$ = JDBC_GET_DATABASE_NAME$(SALES)

IF OK <> 0

THEN ERRORMES = JDBC_GET_LAST_ERROR$

ENDIF

 

See also:

JDBC_CONNECT