Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Triggering errors from inside an FLL library
Message
 
To
26/03/1997 15:20:20
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00025699
Message ID:
00025723
Views:
27
>> Does anyone know how to trigger an error condition from inside a VFP 5.0
>> FLL using external VFP error codes. The _Error(nCode) C function only
>> accepts Internal error codes and there seems to be no method for converting
>> external codes to internal codes. (there is however _ErrorInfo() which
>> converts an internal code to an external code...)
>
>it seems _Error() is what you need
>it accepts a VFP error code number and generates an error and gives the control over it
>to the VFP error handler

That would normally be the case, but if you notice, _Error(nCode)
requires that nCode is an internal foxpro error code. The documentation (s) on error codes in VFP only seems to describe External error codes.

Do you know of a way to get a listing of internal error codes???

For example using doing
_Error(631);
actually generates foxpro error code 230....

Peter Stephens
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform