PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 25 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 the data files that are using this connection are closed.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Describe the connection
MyConnection is Connection
 
MyConnection.OpenConnection()
 
// Specify that "Salaries" is using the new connection
Salaries.ChangeConnection(MyConnection)
 
// Start browsing 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 occurred. 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 running <Connection variable>.CloseConnection.
Component : wd250hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment