Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pemstatus???
Message
From
30/10/2004 08:35:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Pemstatus???
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00956066
Message ID:
00956066
Views:
42
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
Next
Reply
Map
View

Click here to load this message in the networking platform