Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with delete and fieldvalid
Message
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Problems with delete and fieldvalid
Miscellaneous
Thread ID:
01276838
Message ID:
01276838
Views:
75
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
Reply
Map
View

Click here to load this message in the networking platform