Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why won't deleted method fire?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00490682
Message ID:
00491041
Vues:
10
>>>>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.
>
>Joe,
>
>I should read your message more carefully :) Deleted method of the grid fires only when you click on DeleteMark in a grid. It would not fire, if you use DELETE command in a code.

Here is what the help says:
*****
Occurs when the user marks a record for deletion, unmarks a record marked for deletion, or when DELETE is issued.
*****

I guess they wrote that wrong?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform