Xbasic

SQL::Query::ReleaseConnection Function

Syntax

V ReleaseConnection()

Arguments

SQL::Query

A SQL::Query object created with a DIM statement.

Description

Clear out the connection property.

Discussion

The ReleaseConnection() method clears the SQL::Query.connection property.

Example

dim qry as SQL::Query
dim connString as C
connString = "{A5API='Access', FileName='c:\program files\a5v7\mdbfiles\alphasports.mdb'}"
qry.parse("Select * from Customer")
? qry.OpenConnection(connString)
= .T.
? qry.ReleaseConnection()
=

See Also