Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CListObjEdit destroys form when deleting last record
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
CListObjEdit destroys form when deleting last record
Miscellaneous
Thread ID:
00446559
Message ID:
00446559
Views:
40
Hi,

I dropped a cListObjEdit on a form I'm building, and when there is only one record listed in the grid and I hit the delete button on the cListObjEdit, my form is closed.

I've traced things with the debugger and apparently, after the Delete process is completed, the cmdDelete.when event fires, and after it returns, the form's Destroy fires. ARRRGGHHH!!!

Here's a bit of background on the form (aka oddities):

When the form's init fires, it calls the form's New() method, which has a dodefault() and immediately a call to the cListObjEdit's bizobj's NEW() method so that the grid starts with one record by default.

Whenever I attempt to delete that one record, my form disappears.

Ideas anyone?

Thanks

Alex
Low-carb diet not working? Try the Low-food diet instead!
Next
Reply
Map
View

Click here to load this message in the networking platform