PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
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. Indeed, the call to a function (other than an error function) can reinitialize and modify the status report returned by HErrorInfo.
  • ErrorInfo is equivalent to HErrorInfo.
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.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
// Manage an error wile creating a file
IF HCreation(Customer) = False THEN
Error("HFSQL error: " + HErrorInfo())
END
Syntax
<Result> = HErrorInfo([<Type of information>])
<Result>: Character string
  • Caption of requested information,
  • Empty string ("") if no error occurred.
<Type of information>: Optional integer constant.
Allows you to specify 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.
Universal Windows 10 App This constant is not available.
Java Access by JDBC: 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
hErrSystemCodeNumber of the associated system error (if it exists)
Java Access by JDBC: This constant is not available.
hErrFullDetailsFull error details (error line, current process, etc.).
Remark: Returns the same information as the one retrieved when clicking the "Copy" button in the error window of WLanguage.
hErrFICFull name of data file associated (".FIC") with the error.
Java Access by JDBC: This constant is not available.
hErrFileLogical name of data file 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 +
<Login of user who locked the database> + TAB +
<Computer from which the database was locked>
Java Access by JDBC: This constant is not available.
hErrClientInfoInformation about the client layer used by the Native Access that returned the error.
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 Access by JDBC: This constant is not available.
hErrServerInfoInformation about the server used by the Native Access that returned the error.
Universal Windows 10 App This constant is not available.
hErrLinkName of link associated with the error.
hErrMessage
(default value)
Message associated with the error
hErrADOMessageMessage corresponding to the error returned by ADO (hErrADO).
Universal Windows 10 App This constant is not available.
Java Access by JDBC: This constant is not available.
hErrBaseMessage
Native Connectors (Native Accesses) Message corresponding to the error returned by the database (hErrBase)
hErrNativeMessageMessage corresponding to the error returned by the provider of the native access (hErrSystemCode)
Java Access by JDBC: This constant is not available.
Universal Windows 10 App This constant is not available.
hErrOLEDBMessageMessage corresponding to the error returned by the system during an OLE DB connection (hErrOLEDB)
Java Access by JDBC: This constant is not available.
hErrSystemMessageMessage of the associated system error (if any)
Java Access by JDBC: This constant is not available.
hErrMMOFull name of the memo file (".MMO") associated with the error
Java Access by JDBC: This constant is not available.
hErrNativeError code returned by the DLL used for the native access. See the documentation supplied with the native access for more details.
The corresponding message is returned by the hErrNativeMessage constant.
Universal Windows 10 App This constant is not available.
Java Access by JDBC: This constant is not available.
hErrNDXFull name of the index file (" .NDX") associated with the error.
Java Access by JDBC: This constant is not available.
hErrRecNumNumber of the record associated with the error
Java Access by JDBC: This constant is not available.
hErrOLEDBError code returned by the system during an access via an OLE DB connection.
Universal Windows 10 App This constant is not available.
Java Access by JDBC: This constant is not available.
Versions 20 and later
hErrPositionSQLError
New in version 20
hErrPositionSQLError
hErrPositionSQLError
Position 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>
hErrItemName of item associated with the error.
Java Access by JDBC: This constant is not available.
hErrServerName of the HFSQL Client/Server server that triggers the error.
Universal Windows 10 App This constant is not available.
hErrWDDFull name of analysis file (.WDD file) associated with the error
Business / GUI classification : Business Logic
Component : wd250hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment