Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select on entry
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01026039
Message ID:
01026098
Views:
16
Nadya,

I guess it would be considered a bug, I don't know. But, if your form has controls in containers, be aware that SetAll will not affect them anyway. At least I don't think it would. You can take the method I gave you and move it out of an assign method and into a new custom method that takes a container object as a parameter and recurse it down to all levels if necessary:
PROCEDURE TurnOffSOE(toContainer AS Object)
	LOCAL loObj AS Object

	IF VARTYPE(toContainer) # 'O' OR !PEMSTATUS(toContainer, 'Objects', 5)
		RETURN
	ENDIF

	FOR EACH loObj IN toContainer.Objects
		IF PEMSTATUS(loObj, 'Objects', 5)
			this.TurnOffSOE(loObj)
		ENDIF

		IF PEMSTATUS(loObj, 'SelectOnEntry', 5) AND loObj.SelectOnEntry
			loObj.SelectOnEntry = .f.
			loObj.Left = loObj.Left
		ENDIF
	ENDFOR
ENDPROC
HTH,
Chad


>Interesting! Do you think it's a bug? Why setting the property in run-time doesn't have an effect?
>
>This particular form has lots of objects with inner containers. I guess, I need to find a better way to achieve my goal.
>
>Thanks again.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Reply
Map
View

Click here to load this message in the networking platform