ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • HListDatabase and Native MySQL Connector
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
HListDatabase (Function)
In french: HListeBaseDeDonnées
Native Connectors (Native Accesses)HFSQL Client/ServerAvailable only with these kinds of connection
Lists the Client/Server databases associated with a connection.
PHP Lists the databases associated with a MySQL connection.
Example
// Description de la connexion
HDescribeConnection("MaConnexion", "Julie", "MotDePasse", ...
		"MonServeurHF", "", hAccessHFClientServer, hORead)
// Ouverture de la connexion
HOpenConnection("MaConnexion")
...
// Ajoute dans un champ de saisie les bases de données de la connexion "MaConnexion"
SAI_Saisie1 = HListDatabase("MaConnexion")
Syntax
<Result> = HListDatabase(<Connection> [, <Options>])
<Result>: Character string
List of databases of the server defined by the connection. The result is more or less detailed depending on the constant used:
hLstNormalLists the databases of the server defined by the connection:
<Name of database 1> + TAB + <Name of database 2> + TAB + ...
hLstFileLists the databases and their files for the server defined by the connection:
<Database Name 1> + TAB + <Data File Name 1 in Database 1> + TAB + ... + CR + <Database Name 2> + TAB + <Data File Name 1 in Database 2> + TAB + ... + CR + ...
hLstDatabaseSizeLists the databases and their size (in bytes) for the server defined by the connection:
<Name of database 1> + TAB + <Size of database 1> + CR + <Name of database 2> + TAB + <Size of database 2> + CR + ...
PHP Not available.

Where:
  • <Nom de la base de données X> Database name.
  • <Nom du fichier de données Y dans la base de données X> Name of physical data file Y in database X.
  • <Taille de la base de données X> Size of all the files making up the database in bytes.
If an error occurs, the list of databases corresponds to an empty string ("") and HError is used to identify the error.
<Connection>: Character string or Connection variable
Connection to use. This connection corresponds to:
<Options>: Optional Integer constant (or combination of constants)
Type of list to perform:
hLstFileDetailed list, used to find out the files associated with each database.
hLstNormal
(default value)
Non-detailed list, containing the name of the databases associated with a connection.
hLstDatabaseSizeDetailed list, used to find out the size of all the files associated with each database.
AndroidAndroid Widget JavaPHP Not available.
Remarks
WINDEVWEBDEV - Server codeNative Connectors (Native Accesses)

HListDatabase and Native MySQL Connector

  • HListFile returns the list of files found in the current database.
  • HListDatabase lists the accessible MySQL databases and their files.
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/12/2025

Send a report | Local help