Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CListObjEdit destroys form when deleting last record
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00446559
Message ID:
00447891
Vues:
8
>Alex,
>
>>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!!!>
>
>This is definitely odd (of course, you probably knew that <s>). I'm not sure why this is happening...however, I recommend putting a breakpoint in the form's OnDeleteLastRecord() method to see if it turns up anything interesting.

Hi Kevin,

Yes, I already knew it was odd...

I put a breakpoint where you suggested that method is definitely not called. The form destroys itself and the breakpoint is never hit.

I did one test, and am beginning to wonder if perhaps I'm not doing things the right way in this case. Let me give you a bit of background:

This form is used to CREATE new records. It's a data-entry-only form.

Its init() event in turn calls its new() event, which is where I set a few defaults AND I also call the cListObjEdit's oBizobj's new() event, which also creates a new record in the corresponding table (a child of the main table of the form).

This is the only thing that's different in this form from a more "traditional" (i.e. less "odd") form.

Does this help you help me?

Thanks!

Alex
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform