>> 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++.