Disconnect Method

Official Content
This documentation is valid for:
Disconnects the associated data store.

Syntax

&Datatype.Disconnect()

Type Returned:
Numeric

Description

When you have a DBConnection variable, this method disconnects from the data store associated to the variable. It returns zero if the connection was successful. If there was an error, it returns its code. 
This method does not give an error when used in a program generated with the "Connect at first request" property, if the connection has not been made yet.

Scope

Extended Data Types: DBConnection
Objects: Procedures, Transactions, Web Panels
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

See Also

DBConnection
Error Codes and Messages for DBConnection