Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Triggers and Locks
Message
From
05/01/2004 10:23:53
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00863867
Message ID:
00863870
Views:
9
Aló, Rodolfo.

>Hi... I wish a great year for all of you!

Best wishes for you, too, boy!

>So, my year started a little bit complicated! ;-)
>
>I have one table and I created one trigger for it. When one record is deleted, the trigger is fired. This function returns always .F. (it is just for tests)
>
>
>* Situation 1
>USE Customers
>LOCATE FOR CustomerId = 100
>DELETE
>
>In this case, all works fine. When I try to DELETE the record, VFP returns an error message! Great! :-)
>
>
>* Situation 2
>USE Customers
>LOCATE FOR CustomerId = 100
>? RLOCK() && It returns .T.
>DELETE
>INKEY(0)
>UNLOCK
>
>
>In this situation, I just receive an error message after VFP runs UNLOCK... My problem is part of my solution is encapsulated in some class (Lock and Unlock records) and the other part (DELETE) doesn't... And I have to know If some error has occured when VFP DELETE the record...

What's the error VFP is raising?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform