Official Content

Makes a connection to the associated data store.

Syntax

&DataType.Connect()

Type Returned:
Numeric

Scope

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

Description

When you have a DBConnection variable, the Connect method makes the connection to 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 errors on an open connection, as the connection is just closed and opened again with the new values.

See Also

DBConnection
Error Codes and Messages for DBConnection


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