Signals the error specified by the value in code to the Visual FoxPro run time.
Syntax
void _Error(int code)
int code; /* Internal Visual FoxPro error number. */
Remarks
The code parameter is a Visual FoxPro internal error number and can be passed as a positive or negative value. _Error( ) gives control to the Visual FoxPro error handler so that the error can be handled like any other Visual FoxPro error. Control of program flow doesn't return to the routine that called _Error( ), even when the user chooses to ignore the error. Execution resumes at the next Visual FoxPro statement.
See the Visual FoxPro Error Numbers topic in Help for error numbers and their meanings.
Note Do not use _Error( ) from an event handler.
For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.