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 functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns a detailed information about the last error triggered by the HFSQL engine.
Remarks:
  • This function must be called just after the function that failed. Calling a function other than an error function can reinitialize or change the status report returned by HErrorInfo.
  • ErrorInfo is equivalent to HErrorInfo.
// Manage an error when creating a file
IF HCreation(Customer) = False THEN
	Error("HFSQL error: " + HErrorInfo())
END
Syntax
<Result> = HErrorInfo([<Type of information>])
<Result>: Character string
  • Text of the requested information,
  • Empty string ("") if no error occurred.
<Type of information>: Optional integer constant.
Specifies the type of information to display. If this parameter is not specified, the message associated with the error is returned.
Remark: Not all this information is available for all errors.. An information is available only if it is linked to the error. Otherwise, <Result> is an empty string.
hErrADOError code returned by ADO. The corresponding message is returned by the hErrADOMessage constant.
Java JDBC access: This constant is not available.
hErrADOMessageMessage corresponding to the error returned by ADO (hErrADO).
Java JDBC access: This constant is not available.
hErrBase
Native Connectors (Native Accesses) Error code returned by the database. The corresponding message is returned by the hErrBaseMessage constant
hErrBaseMessage
Native Connectors (Native Accesses) Message corresponding to the error returned by the database (hErrBase)
hErrClientInfoInformation about the client library used by the Native Connector that returned the error.
hErrCodeNumber of the last error raised by the HFSQL engine.
Java JDBC access: This constant is not available.
hErrDebugInfoSpecific information for debugging the problem that occurred. This information should only be displayed and communicated on express demand from PC SOFT.
When running a query via OLE DB, this option allows you to retrieve the code of the SQL query currently run on the database.
Java JDBC access: This constant is not available.
hErrFICFull name of data file associated (".FIC") with the error.
Java JDBC access: This constant is not available.
hErrFicListList of HFSQL files with errors.
Example of use: When creating a replication, if data files have a password, to obtain a list of data files in error.. This list contains the physical names of the different data files, separated by CR characters.
Java JDBC access: This constant is not available.
hErrFileLogical name of data file associated with the error
hErrFullDetailsFull error details (error line, current process, etc.).
Remark: Returns the same information as when you click on the "Copy" button in the WLanguage error window.
hErrItemName of the item associated with the error.
Java JDBC access: This constant is not available.
hErrLinkName of the link associated with the error.
hErrLockInfo
HFSQL Client/Server During a lock error (HErrorLock returns True or the error 70100), this constant is used to return information about the lock. This information is the same as the one returned by HInfoLock (the lock lifespan is not specified).
When the access to the database was locked by HNoDatabaseAccess (error 74011), the result has the following format:
<Name of locked database> + TAB +
<User who locked the database> + TAB +
<Computer from which the database was locked>
Java JDBC access: This constant is not available.
hErrMessage
(default value)
Message associated with the error
hErrMMOFull name of the memo file (".MMO") associated with the error
Java JDBC access: This constant is not available.
hErrNativeError code returned by the DLL used for the Native Connector. For more details, see the documentation provided with the Native Connector.
The corresponding message is returned by the hErrNativeMessage constant.
Java JDBC access: This constant is not available.
hErrNativeMessageMessage corresponding to the error returned by the provider of the Native Connector (hErrSystemCode)
Java JDBC access: This constant is not available.
hErrNDXFull name of the index file (" .NDX") associated with the error.
Java JDBC access: This constant is not available.
hErrOLEDBError code returned by the system during an access via an OLE DB connection.
Java JDBC access: This constant is not available.
hErrOLEDBMessageMessage corresponding to the error returned by the system during an OLE DB connection (hErrOLEDB)
Java JDBC access: This constant is not available.
hErrPositionSQLErrorPosition of the SQL error in the SQL code of the query run by HExecuteSQLQuery.
This position is given in the following format:
<Start row of the error> + TAB + ...
<Start column of the error> + TAB + ...
<End row of the error> + TAB + ...
<End column of the error>
hErrRecNumNumber of the record associated with the error
Java JDBC access: This constant is not available.
hErrServerName of the HFSQL Client/Server server that triggers the error.
hErrServerInfoInformation about the server used by the Native Connector that returned the error.
hErrSystemCodeNumber of the associated system error (if it exists)
Java JDBC access: This constant is not available.
hErrSystemMessageMessage of the associated system error (if any)
Java JDBC access: This constant is not available.
hErrWDDFull name of analysis file (.WDD file) associated with the error
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/15/2024

Send a report | Local help