Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why won't deleted method fire?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00490682
Message ID:
00490889
Views:
7
>>>>Using vfp5...
>>>>
>>>>I have a grid on a form that I want the deleted event to fire on. I have
>>>>a command button that does...
>>>>
>>>>
>>>>select childtable
>>>>delete
>>>>thisform.refresh
>>>>
>>>>
>>>>If I click the deletemark the deleted event will fire but using the
>>>>command button code it will not. Any ideas?
>>>
>>>Joe,
>>>
>>>This problem discussed here couple of times. The answer is to propagate record movement in a grid, say, skip -1, skip or something similar.
>>
>>In grid.deleted...
>>
>>=messagebox('test')
>>
>>This never fires even if I skip -1 or skip.
>
>That event only fires if you click the delete box inside the grid. Since you didn't delete the record using the grid, that event never happened. If you have code that you want to have run there, then call it programmatically.

Thanks to all!
Previous
Reply
Map
View

Click here to load this message in the networking platform