Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to thisform not working ?
Message
From
13/11/2004 09:35:40
 
 
To
10/11/2004 11:07:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00960020
Message ID:
00961144
Views:
6
Hi,
>I add a container object to a page in a pageframe on a screen like this:
>
>	WITH THISFORM.pgf1.page4
>		IF pemstatus(THISFORM.pgf1.page4,"o1",5)
>			THISFORM.pgf1.page4.REMOVEOBJECT("o1") 			
>               ENDIF
>		.NEWOBJECT("o1","cntCarrierPage","modules\vCPR3b")<----------------------
>		.o1.VISIBLE=.T.
>	ENDWITH
>
wild guess is that thisform works only for true containership. You are not ADDING in the sense of "containership" but only getting a reference into a property. Perhaps the thisform will be found if you use addobject(), but AFAIR you cannot exchange added objects via remove and addobject. So first test with an object without a "o1".

If that is the cause, some other workarounds usable for programmatic interaction should be obvious, if you are not happy with the one already working for user interaction.

HTH

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform