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:
00490836
Vues:
9
>>>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.
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform