Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Delete Mark and Deleted Event on a gird
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00466889
Message ID:
00467422
Vues:
12
Bret:

> But the experienced user will just check the mark on or off, then they call me and ask why the SAVE CANCEL buttons do not come on. That is what brought this hwole thing up.

The Deleted event will fire. A few of things to keep in mind when delaing with the Deleted event:
1) The nRecno parameter is the RECNO() of the record you are trying to delete, which may different from the current record.
2) If you test for DELETED(nRecno) in the Deleted event, it returns the value BEFORE the delete or recall. For example, DELETED(nRecno) is true if recalling a record.
3) If the user clicks on the DeleteMark, the LostFocus event of the textbox is NOT triggered. If the click is on the DeleteMark of the current record. the textbox keeps focus. If the click is on another record, the textbox value is reverted and the focus passes to the textbox in tye same column corresponding to the record whose DeleteMark was clicked.


Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform