Official Content

Disconnects the associated data store.

Syntax

&DataType.Disconnect()

Type Returned:
Numeric

Scope

Extended Data Types: DBConnection
Objects: Procedure, Transaction, Web Panel
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

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.

See Also

DBConnection
Error Codes and Messages for DBConnection


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant