TODBCDisconnect
(Engine-Level Function)
DB |
Required. 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 VTScada, 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);
]
]
Trihedral and VTScada are registered trade marks of Trihedral Engineering Limited
© Trihedral Engineering Limited 1983- 2024 All rights reserved.