|
|
|
| 13 May 2002 | DBConnClose() |
| Author | Jens Meyer (sealeopard@usa.net) |
| Action | Closes a connection to a database that has previously been opened with DBConnOpen(). |
| Syntax | DBConnClose (connection) |
| Parameters | |
| Remarks | KIXTART BBS http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000195 |
| Returns | 0 if successful, otherwise error code |
| Dependencies | None. |
| Examples | $retcode = DBConnClose($objConn) |
| Source |
FUNCTION DBConnClose ($objconn)
DIM $adstateopen
$adstateopen = 1
IF VarType($objconn) = 9
IF $objconn.state = $adstateopen
$objconn.close()
IF @error
EXIT @error
ENDIF
ENDIF
$objconn=''
ELSE
EXIT 87
ENDIF
$dbconnclose=@error
ENDFUNCTION ; - DBConnClose -
|
|
|
|