Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
THIS.Parent.oForm.Release
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
THIS.Parent.oForm.Release
Miscellaneous
Thread ID:
00385350
Message ID:
00385350
Views:
41
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.
Reply
Map
View

Click here to load this message in the networking platform