PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Equivalence
  • HFSQL error
  • DDE errors
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
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 re-initialize and modify the status report of ErrorInfo.
Example
// Open the overview file
nFileID is int = fOpen(FileName, foRead)
// Check the file opening
IF nFileID = -1 THEN
Error("Unable to open the file: " + FileName, ErrorInfo())
RESULT False
END
WEBDEV - Server codeAjax
// Error found?
IF ErrorOccurred = True THEN
// Full message of the main error
Trace(ErrorInfo())
// Browse the sub-errors (if any)
FOR i = 1 _TO_ ErrorInfo(errNumberSubError)
// Full message of each sub-error
Trace("Sub-error " + i + ": " + ErrorInfo(errMessage, i))
END
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.
PHP Full error details.
<Type of information>: Optional constant
Information to return.
errCodeError code
PHP This constant is ignored.
errSystemCodeNumber of the system error (if it exists)
PHP This constant is ignored.
errFullDetailsFull error details (error line, current process, etc.).
Note: Returns the same information as the one retrieved when clicking the "Copy" button in the error window of WLanguage.
errDateTimeDate and time of error
PHP This constant is ignored.
errElementName of object associated with the current process when the error occurred.
PHP This constant is ignored.
errFICFull name of data file (FIC) associated with the error.
PHP This constant is ignored.
errFileLogical name of file associated with the error.
PHP This constant is ignored.
errInfoAdditional information.
PHP This constant is ignored.
errDebugInfoSpecific information for debugging the problem that occurred. This information should only be displayed and communicated on express demand from PC SOFT.
OLE DB When running a query via OLE DB, this option allows you to retrieve the code of the SQL query currently run on the database.

PHP This constant is ignored.
PHP This constant is ignored.
errLinkName of link associated with the error.
PHP This constant is ignored.
errLineNumber of the error line.
PHP This constant is ignored.
errMessage
(default value)
Full error message.
errSystemMessageMessage of system error (if it exists).
errMMOFull name of memo file (.MMO) associated with the error.
PHP This constant is ignored.
errNDXFull name of index file (.NDX) associated with the error.
PHP This constant is ignored.
errNumberSubErrorNumber of sub-errors for the error
PHP This constant is ignored.
errFullComponentNameFull name of component currently run.
Some examples:
  • "" (empty string): main application context.
  • "Component1": "Component1" component directly used in the project.
  • "Component1.Component2": "Component2" component used from "Component1".
PHP This constant is ignored.
errRecNumNumber of the record associated with the error.
errDuringName of the WLanguage function that threw the error.
PHP This constant is ignored. An empty string is returned.
errStackStack of WLanguage calls
PHP This constant is ignored.
errSummarySummary of error
PHP This constant is ignored.
errItemName of item associated with the error.
PHP This constant is ignored.
errProcessName of process in progress when the error occurred.
PHP This constant is ignored.
errWDDFull name of WDD associated with the error.
PHP This constant is ignored.
WEBDEV - Server codeAjax

Getting information about the sub-errors of the last error Hide the details

<Result> = ErrorInfo(<Type of information> , <Sub-error subscript>)
<Result>: Character string or integer
  • Requested information.
  • Empty string ("") if no sub-error occurred or if the requested information is not available.
<Type of information>: Constant
Information to return.
errCodeCode of the sub-error.
errSystemCodeNumber of the system sub-error (if it exists).
errFullDetailsFull details of sub-error (sub-error line, current process, etc.).

Note: Returns the same information as the one retrieved when clicking the "Copy" button in the error window of WLanguage.
errDateTimeDate and time of sub-error.
errElementName of object associated with the process in progress when the sub-error occurred.
errFICFull name of data file (.FIC) associated with the sub-error.
errFileLogical name of file associated with the sub-error.
errInfoAdditional information.
errDebugInfoSpecific information for debugging the problem that occurred. This information should only be displayed and communicated on express demand from PC SOFT.

OLE DB When running a query via OLE DB, this option allows you to retrieve the code of the SQL query currently run on the database.
errLinkName of link associated with the sub-error.
errLineNumber of the sub-error line.
errMessage
(default value)
Full message of sub-error.
errSystemMessageMessage of system error (if it exists).
errMMOFull name of memo file (.MMO) associated with the sub-error.
errNDXFull name of index file (.NDX) associated with the sub-error.
errRecNumNumber of record associated with the sub-error.
errDuringName of WLanguage function that threw the sub-error.

errStackStack of WLanguage calls.
errSummarySummary of sub-error.
errItemName of item associated with the sub-error.
errProcessName of process in progress when the sub-error occurred.
errWDDFull name of WDD associated with the sub-error.
<Sub-error subscript>: Integer
Subscript of sub-error to use.
Reminder: The number of sub-errors for an error is returned by the errNumberSubError constant.
Remarks

Equivalence

Error called without parameter displays the error message corresponding to the last WLanguage function that threw an error.
In this case, the following code:
Error()
is equivalent to:
Error(ErrorInfo())

HFSQL error

When a HFSQL error occurs, ErrorInfo is equivalent to HErrorInfo.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
WEBDEV - Server codeAjax

DDE errors

See DDE error codes to find out the main DDE error codes.
Component : wd240vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment