PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
HDeleteDatabase (Function)
In French: HSupprimeBaseDeDonnées
HFSQL Client/ServerAvailable only with this kind of connection
Deletes a database found on a HFSQL server. All the connections that use the deleted database are closed.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
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.
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", "MyDatabase", hAccessHFClientServer, hORead)
// Open the connection
HOpenConnection("MyConnection")
// Delete the database
HDeleteDatabase("MyConnection")
Syntax
<Result> = HDeleteDatabase(<Connection Name> [, <Database Name>] [, <Options>])
<Result>: Boolean
  • True if the database was deleted,
  • False if an error occurred. HError is used to identify the error.
<Connection Name>: Character string (with or without quotes)
Name of the connection for which the database must be deleted. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Database Name>: Optional character string (with or without quotes)
Name of the database to delete.
If this parameter is not specified, the database defined in the connection will be used. A WLanguage error occurs if no database is defined in the connection.
<Options>: Optional Integer constant (or combination of constants)
By default, when deleting the database, the files corresponding to the logs are not deleted and the files corresponding to the transactions are deleted. This parameter is used to modify this behavior:
hKeepTRSStores the transaction files.
hDeleteLogDeletes the log files and all the logged operations.
Components
WINDEVWEBDEV - Server code 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