Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with delete and fieldvalid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
Problems with delete and fieldvalid
Divers
Thread ID:
01276838
Message ID:
01276838
Vues:
72
I have grid on a form that is displayed in a top level form. The user enters part numbers into new records in the grid, in the cmdatamanager.fieldvalid I check that the part does not already exist in the part list; if it does I give a duplicate part # error. If the user deletes the record that is duplicated using the grids context menu, I get the duplicate part # error again, but behind the duplicate part# error dialog is the “Are you sure you want to delete…?” dialog.

The grids contextmenuexecute calls thisform.delete() which is causing the fieldvalid to fire and putting the duplicate part # error on top of “Are you sure you want to delete…?”.

After the user selects Yes to the delete message the record is deleted but then the part number on the first record in the grid is changed to what was just deleted.

Is there anything I can do to prevent this?

CodeMine version 7.2.

Thanks
Tom
Répondre
Fil
Voir

Click here to load this message in the networking platform