ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
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
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 wile creating a file
IF HCreate(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: This information is not available for all the 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.
PHP This constant is not available.
hErrADOMessageMessage corresponding to the error returned by ADO (hErrADO).
hErrBase
PHPNative Connectors (Native Accesses) Error code returned by the database. The corresponding message is returned by the hErrBaseMessage constant
hErrBaseMessage
PHPNative 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.
PHP 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.
hErrFICFull name of data file associated (".FIC") with the error.
PHP This constant is not available.
hErrFicListList of HFSQL files with errors.
Use example: If there are password-protected data files, gets the list of data files with errors when creating a replication. This list contains the physical names of the different data files, separated by CR characters.
PHP 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 the one retrieved via the "Copy" button in the WLanguage error window.
hErrItemName of the item associated with the error.
hErrLinkName of the link associated with the error.
PHP This constant is not available.
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>
PHP This constant is not available.
hErrMessage
(default value)
Message associated with the error
hErrMMOFull name of the memo file (".MMO") associated with the error
PHP 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.
PHP This constant is not available.
hErrNativeMessageMessage corresponding to the error returned by the provider of the Native Connector (hErrSystemCode)
hErrNDXFull name of the index file (" .NDX") associated with the error.
hErrOLEDBError code returned by the system during an access via an OLE DB connection.
hErrOLEDBMessageMessage corresponding to the error returned by the system during an OLE DB connection (hErrOLEDB)
PHP 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
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)
PHP This constant is not available.
hErrSystemMessageMessage of the associated system error (if any)
PHP 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: 06/14/2024

Send a report | Local help