Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
THIS.Parent.oForm.Release
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
THIS.Parent.oForm.Release
Divers
Thread ID:
00385350
Message ID:
00385350
Vues:
40
I have a nav bar based on Txtbtns to which I added this code in one of its methods called from its .Init:
IF TYPE("THISFORMSET") = "O"
	THIS.oFormOrSet = THISFORMSET
ELSE
	THIS.oFormOrSet = THISFORM
ENDIF
Then in the Exit button of my nav bar it says:
THIS.Parent.oFormOrSet.Release
I do it this way so I can use the nav bar to close a formset. It was working, but now I have my nav forms opening other nav forms. They all use the same nav bar class. Once in a while, the THIS.Parent.oFormOrSet reference is getting stomped somehow, and I get an "unknown member" error. The behavior doesn't seem consistent. I bounce around the forms quite a bit before seeing the error, and haven't been able to reproduce it consistently. The forms have private datasessions. The oFormOrSet property is not being written to anywhere else that I can see.

Thanks IA.
Répondre
Fil
Voir

Click here to load this message in the networking platform