PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • HListDatabase function and the native MySQL access
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
HListDatabase (Function)
In French: HListeBaseDeDonnées
Native AccessesHFSQL 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.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
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.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Example
// Describe the connection
HDescribeConnection("MyConnection", "Julia", "Password", ...
"MyHFServer", "", hAccessHFClientServer, hORead)
// Open the connection
HOpenConnection("MyConnection")
...
// Adds the databases of "MyConnection" into a control
EDT_Edit1 = HListDatabase("MyConnection")
Syntax
<Result> = HListDatabase(<Connection Name> [, <Options>])
<Result>: Character string
Lists the 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:
<Name of Database 1> + TAB + <Name of File 1 in Database 1> + TAB + ... + CR +<Name of Database 2> + TAB + <Name of File 1 in Database 2> + TAB + ... + CR +...
Versions 22 and later
hLstDatabaseSize
New in version 22
hLstDatabaseSize
hLstDatabaseSize
Lists 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 + ...
AndroidAndroid Widget JavaPHP Not available.
PHP Not available.

Where:
  • <Name of Database X>: Database name.
  • <Name of File Y in Database X>: Name of physical file Y found in database X.
  • <Size of Database X>: Size of all files found in 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 Name>: Character string (with or without quotes)
Name of connection to use. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Options>: Optional Integer constant (or combination of constants)
Configures the 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.
Versions 22 and later
hLstDatabaseSize
New in version 22
hLstDatabaseSize
hLstDatabaseSize
Detailed list, used to find out the size of all the files associated with each database.
AndroidAndroid Widget JavaPHP Not available.
Remarks
WINDEVWEBDEV - Server codeNative Accesses

HListDatabase function and the native MySQL access

From version 170069:
  • HListFile returns the list of files found in the current database.
  • HListDatabase lists the accessible MySQL databases and their files.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Windows Mobile wp230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment