Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RemoveObject Doesn't
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
RemoveObject Doesn't
Miscellaneous
Thread ID:
01167475
Message ID:
01167475
Views:
49
I have the following code. When run subsequently, it errors on the AddObject line
because the cntProperty container is not being removed. It dissappears from the screen
but the object reference still exists:
	.RemoveObject('cntProperty')

	** Determine which property container to add
	DO CASE

		CASE ThisForm.cClassType='E' AND ThisForm.cCategory= 'R'
			cClassName = 'cntProperty_RE'

		CASE ThisForm.cClassType='E'
			cClassName = 'cntProperty_E'

		CASE ThisForm.cClassType='L'
			cClassName = 'cntProperty_L'

		CASE ThisForm.cClassType='M'
			cClassName = 'cntProperty_M'

		CASE ThisForm.cClassType='P'
			cClassName = 'cntProperty_P'

		CASE ThisForm.cClassType='S'
			cClassName = 'cntProperty_S'

		CASE ThisForm.cClassType='C' AND ThisForm.cCardType = 'S'
			cClassName = 'cntProperty_B'

		CASE ThisForm.cClassType='C'
			cClassName = 'cntProperty_C'

	ENDCASE

	** Add the new property container
	.AddObject('cntProperty', cClassName)
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform