Home > Language Reference > Database Functions > DbDisconnect

DbDisconnect

The DbDisconnect function disconnects the last connected ODBC database.

Syntax

ret=DbDisconnect()

Parameters

None.

Return value

ret, optional numeric return value. If the function successfully disconnects the database, the return value is 0. If the function fails, the return value is a nonzero value (see Error Codes for Database Functions). 

See also

DbBof
DbClose
DbConnect
DbEof
DbExecute
DbGetFieldNumeric
DbGetFieldString
DbMove
DbMoveFirst
DbMoveLast
DbMoveNext
DbMovePrev
DbRecordCount
DbSelect

Example

DbDisconnect()