Disconnects the associated data store.
&DataType.Disconnect()
Type Returned:
Numeric
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)
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.
DBConnection
Error Codes and Messages for DBConnection