|
|
|
|
|
- Equivalence
- HFSQL error
- DDE errors
ErrorInfo (Function) In french: ErreurInfo Retrieves information about the last error that occurred in a function of a WINDEV, WINDEV Mobile or WEBDEV component. Caution: - ErrorInfo must be used immediately after the call to the function that failed. Indeed, calling a WLanguage function may reinitialize and modify the status report of ErrorInfo.
- ErrorInfo should not be used to check whether an error has been encountered. To check if a WLanguage function has encountered an error, use one of the following methods:
- check the status report of the WLanguage function.
- check the ErrorOccurred variable.
nFileID is int = fOpen(FileName, foRead)
IF nFileID = -1 THEN
Error("Unable to open file: " + FileName, ErrorInfo())
RETURN False
END
Syntax
Getting information about the last error Hide the details
<Result> = ErrorInfo([<Type of information>])
<Result>: Character string or integer - Requested information.
- Empty string ("") if no error occurred or if the requested information is not available.
<Type of information>: Optional constant Information to return. | | errCode | Error code
| errDateTime | Date and time of error
| errDebugInfo | Specific information for debugging the problem that occurred. This information should only be displayed and communicated on express demand from PC SOFT.
| errDuring | Name of the WLanguage function that threw the error.
| errElement | Name of object associated with the current process when the error occurred.
| errFIC | Full name of the data file (.FIC) associated with the error.
| errFile | Logical name of the file associated with the error.
| errFullComponentName | Full name of the component being executed. For example:- "" (empty string): main context of the application.
- "Component1": "Component1" component used directly in the project.
- "Component1.Component2": "Component2" component used from "Component1".
| errFullDetails | Full 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. | errInfo | Additional information.
| errItem | Name of the item associated with the error.
| errLine | Number of the error line.
| errLink | Name of the link associated with the error.
| errMessage (default value) | Full error message. | errMMO | Full name of the memo file (.MMO) associated with the error.
| errNDX | Full name of the index file (.NDX) associated with the error.
| errNumberSubError | Number of sub-errors for the error
| errProcess | Name of process in progress when the error occurred.
| errRecNum | Number of the record associated with the error.
| errStack | Stack of WLanguage calls
| errSummary | Summary of error
| errSystemCode | Number of the system error (if it exists)
| errSystemMessage | Message of system error (if it exists). | errWDD | Full name of the WDD file associated with the error.
|
Remarks Equivalence Calling Error without any parameters displays the error message corresponding to the last WLanguage function that triggered an error. In this case, the following code: HFSQL error When an HFSQL error occurs, ErrorInfo is equivalent to HErrorInfo.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|