PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • <Connection variable>.ListDatabase and Native MySQL Connector
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>.ListDatabase (Function)
In french: <Variable Connexion>.ListeBaseDeDonné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
// Describe the connection
MyConnection is Connection
 
// Open the connection
MyConnection.OpenConnection()
...
// Add the databases of MyConnection into an edit control
EDT_Edit1 = MyConnection.ListDatabase()
Syntax
<Result> = <Connection>.ListDatabase([<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:
<Name of database 1> + TAB + <Name of data file 1 in database 1> + TAB + ... + CR +<Name of database 2> + TAB + <Name of data file 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:
  • <Name of database X>: Database name.
  • <Name of data file Y in database X>: Name of physical data file Y located in database X.
  • <Size of database X>: Size of all files located 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>: Connection variable
Name of the Connection variable that describes the connection to use.
<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)

<Connection variable>.ListDatabase and Native MySQL Connector

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