PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)
// 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
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errSystemCodeNumber of the system error (if it exists)
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errFullDetailsFull error details (error line, current process, ...).
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
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJavaPHP This constant is ignored.
errElementName of object associated with the current process when the error occurred.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errFICFull name of data file (FIC) associated with the error.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errFileLogical name of file associated with the error.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errInfoAdditional information.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP 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.

AndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJavaPHP This constant is ignored.
iPhone/iPadUniversal Windows 10 AppPHP This constant is ignored.
errLinkName of link associated with the error.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errLineNumber of the error line.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP 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.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errNDXFull name of index file (.NDX) associated with the error.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errNumberSubErrorNumber of sub-errors for the error
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJavaPHP 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".
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJavaPHP This constant is ignored.
errRecNumNumber of the record associated with the error.
AndroidAndroid Widget Universal Windows 10 AppJava This constant is ignored.
errDuringName of WLanguage function that triggered the error.
Windows MobilePHP This constant is ignored. An empty string is returned.
errStackStack of WLanguage calls
iPhone/iPadApple WatchPHP This constant is ignored.
errSummarySummary of error
PHP This constant is ignored.
errItemName of item associated with the error.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errProcessName of process in progress when the error occurred.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
errWDDFull name of WDD associated with the error.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is ignored.
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)

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, ...).

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 triggered the sub-error.

Windows Mobile This constant is ignored. An empty string is returned.
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 triggered 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.
WINDEVWEBDEV - Server codeReports and QueriesAjax

DDE errors

See DDE error codes to find out the main DDE error codes.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment