Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Errors trapping
Message
From
21/08/1997 04:37:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Errors trapping
Miscellaneous
Thread ID:
00046067
Message ID:
00046067
Views:
66
I encountered this problem :

In the method init of a form I put the instruction "On error do loc_err with(error())"
this routine would prevent the system by giving me the error 1884 ( "Uniqness of index violated")
But if I generate a record with a duplicate key the error routine is not processed.

Here is the error procedure :

******************
Procedure loc_err
parameters errno
if errno = 1884
=tablerevert(.f.)
else
.........
endif
******************

But it is not processed

Thanks
Alessio
Reply
Map
View

Click here to load this message in the networking platform