ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<Connection variable>.CloseConnection (Function)
In french: <Variable Connexion>.FermeConnexion
ODBCNot available with this kind of connection
Closes a connection to a database. All data files using this connection are closed.
Example
// Describe the connection
MyConnection is Connection
 
MyConnection.OpenConnection()
 
// Specify that "Salaries" uses the new connection
Salaries.ChangeConnection(MyConnection)
 
// Start looping through the "Salaries" table on SQLServer
Salaries.ReadFirst()
...
 
// Close the connection
MyConnection.CloseConnection()
Syntax
<Result> = <Connection>.CloseConnection()
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurs. HErrorInfo is used to identify the error.
<Connection>: Connection variable
Name of the Connection variable that describes the connection to a database.
Remarks
The description of the connection must be known when<Connection variable>.CloseConnection is executed.
Component: wd290hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/06/2023

Send a report | Local help