Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Postdelete/Predelete
Message
From
11/04/2005 14:16:42
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01003258
Message ID:
01003450
Views:
17
>Ok once again I probably missed the obvious but seems like the postdeletehook should not fire if the user says "NO" to the delete dialog. I see where the click event code of the delete botton checks the predeletehook and won't execute if that returns false but should not the post delete be done in the same way?
>
>Or does someone have a way to trap that the user said NO and fall out of the postdeletehook?

I'd suggest doublechecking the code that asks the user. What are you calling and where from? The bizobj.delete() fires the postdelete hook unless the bizobj.predeletehook cancels, or it throws an error.

Chris.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform