PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Connection with an HFSQL analysis
  • Various
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
Closes the current connection and frees the memory used by the connection. SQLDisconnect must be systematically called to close the connection, even if this connection failed.
Versions 19 and later
Android Widget This function is now available in Android Widget mode (accessing the external databases via a Webservice).
Android This function is now available for Android applications (accessing the external databases via a Webservice).
iPhone/iPad This function is now available for iPhone/iPad applications (accessing the external databases via a Webservice).
New in version 19
Android Widget This function is now available in Android Widget mode (accessing the external databases via a Webservice).
Android This function is now available for Android applications (accessing the external databases via a Webservice).
iPhone/iPad This function is now available for iPhone/iPad applications (accessing the external databases via a Webservice).
Android Widget This function is now available in Android Widget mode (accessing the external databases via a Webservice).
Android This function is now available for Android applications (accessing the external databases via a Webservice).
iPhone/iPad This function is now available for iPhone/iPad applications (accessing the external databases via a Webservice).
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
HFSQLHFSQL Client/Server
// Exemple attaché à l'analyse GESCOM
// TABLE_TableReq est une table mémoire
ResConnect is int
ResExec is boolean
MaBase is string = "C:\GESCOM.WDD"
ResConnect = SQLConnect(MaBase, "", "")
IF ResConnect <> 0 THEN
ResExec = SQLExec("SELECT NOM, VILLE FROM POP", "REQ1")
IF ResExec = True THEN
// Récupérer les données dans la table
SQLTable("REQ1", TABLE_TableReq)
ELSE
// Erreur d'exécution de la requête
// Récupérer les informations relatives à la requête exécutée
SQLInfo("REQ1")
Error(SQL.MesError)
END
// Libérer la requête dans tous les cas
SQLClose("REQ1")
ELSE
 // Erreur de connexion
 Error("La connexion à la base" + MaBase + "a échoué")
END
// Libérer la requête dans tous les cas
SQLDisconnect()
Syntax
SQLDisconnect()
Remarks
HFSQLHFSQL Client/Server

Connection with an HFSQL analysis

In the case of a connection with an HFSQL evaluation, function SQLDisconnect closes the evaluation (equivalent to function HCloseAnalysis). To continue to use the analysis files, the analysis must be opened by HOpenAnalysis.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.

Various

  • A single connection can be established at a given time.
  • The memory allocated during the connection (execution of "SQLFreeConnect") is automatically freed.
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment