AERROR()
See Also: MESSAGE
Description: Creates a variable array containing information about the most recent
Visual FoxPro, OLE, or ODBC error. When a VFP error occurs, ArrayName[2] contains the text of the error
message, which is the same as the value returned by MESSAGE().
Internationalization gotcha: Obviously, you'll want to avoid passing these AERROR()
messages to the user unless you are sure that their workstation has the correct localized versions of
Windows and VFP.
Internationalization gotcha: VFP errors vary with the localization language of
VFP.
Internationalization gotcha: OLE error messages vary with the localization language
of Windows. When OLE errors numbered 1427 or 1429 occur, then ArrayName[2] contains the text of the VFP
error message (like "OLE Idispatch exception code"), and ArrayName[3] contains the text of the OLE
error message. Thus while the VFP error message varies with the localization of VFP, the OLE error
message usually varies with the localization of Windows.
Internationalization gotcha: ODBC error messages vary with the localized language
of VFP. When an ODBC error numbered 1526 occurs, then ArrayName[2] contains the text of the VFP error
message (like "Connectivity error:"), and ArrayName[3] contains the text of the ODBC error message.
Both the VFP and ODBC error messages vary with the localization of VFP.
|