Description: This statement stops a connection to the ODBC database; it is similar to ODBCDisconnect except that it runs in its own thread (see "Comments" section for differences).
Returns: Nothing
Usage: Script
Format: TODBCDisconnect(DB)
Parameter: DB { ODBC handle } { required } { no default: }
An ODBC value for the ODBC database as returned by TODBCConnect or ODBCConnect.
Comments: When TODBCDisconnect is executed in its script, it starts its own thread which will not stop execution of VTS, and which will exist until the connection to the database has been broken.
Example:
Main [
If 1 Idle;
[
TODBC(ODBCHandle { Handle to database },
"SELECT ALL * FROM Table1" { SQL command },
Attrib, Result { Results of command },
0, 0, 0 { No err details req'd });
]
]
Idle [
If Valid(Result) Done;
[
TODBCDisconnect(ODBCHandle);
]
]
See Also:
ODBC | ODBCConfigureData | ODBCConnect | ODBCDisconnect | ODBCSources | ODBCStatus | ODBCTables | TODBC | TODBCConnect