Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pemstatus???
Message
De
30/10/2004 08:35:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Pemstatus???
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00956066
Message ID:
00956066
Vues:
43
I need to add an object at runtime. How can I find out if the object already exists?
The way I use pemstatus does not seem to work, neither does TRY/ENDTRY as below
WITH THISFORM
	IF .UseInternal
		.pgf1.ACTIVEPAGE=4
		WITH .pgf1.page4
			try
				THISFORM.pgf1.page4.RemoveObject("o1")
			CATCH 
			ENDTRY 
			.NEWOBJECT("o1","cntClaimantPage","modules\vCPR3b")
			.o1.VISIBLE=.T.
		ENDWITH
Thanks

P
Peter Cortiel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform