Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference to thisform not working ?
Message
De
13/11/2004 09:35:40
 
 
À
10/11/2004 11:07:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00960020
Message ID:
00961144
Vues:
5
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform