Returns the number of the last error triggered by the HFSQL engine.
Remark: 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 HError.
// Manage an error wile creating a file
IF HCreation(Customer) = False THEN
Error("HFSQL error: " + HError())
END
Syntax
<Result> = HError([<Type of error>])
<Result>: Integer
- Number of the last error that occurred.
- hNoError constant (set to 0) in the following cases:
- No error occurred.
- The requested type of error corresponded to a sub-error but no sub-error occurred.
<Type of error>: Optional integer constant.
Used to retrieve the numbers of sub-errors. | |
hErrCurrent (default value) | Number of the current error. |
hErrMain | Number of the main error. |
hSubErrFirst | Number of the first sub-error. |
hSubErrLast | Number of the last sub-error. |
hSubErrNext | Number of the next sub-error. |
hSubErrPrevious | Number of the previous sub-error. |
Remarks
To find out the main numbers of HFSQL errors, see:
HFSQL errors.
Business / UI classification: Business Logic