<<

Contents

Search

>>

 

JDBC_DISCONNECT

 

 

Function

 

 

Syntax:

JDBC_DISCONNECT(<File Number>)

 

<File Number> = <NUM-EXPRESSION>

 

Meaning:

Closes a connection to a JDBC database.

 

JDBC_DISCONNECT returns the result –1 if an error occurred, otherwise 0.

 

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

 

Sample:

H% = JDBC_DISCONNECT(2)

IF H% = -1

THEN ERRORMES = JDBC_GET_LAST_ERROR$

ENDIF

 

See also:

JDBC_CONNECT