Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
101 VFP7 Things, Part 6
Message
From
08/12/2000 09:36:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
101 VFP7 Things, Part 6
Miscellaneous
Thread ID:
00450771
Message ID:
00450771
Views:
72
Here's one that I remember asking for.

The DataEnvironment, Grid, PageFrame, Command Group and Options Group base classes all include an Objects Collection. This is very handy, so whever you want to scroll through all levels of controls in a form, you don't need code like:
do case
	case loControl.BaseClass = 'Option Group'
		for each loButton in loControl.Buttons
			...
		endfor
	case  loControl.BaseClass = 'PageFrame'
		for each loPage in loControl.Pages
			...
		endfor
	case ect. ect.
endcase
Just one for each oOPbject int loObject.Objects. Its also great to have this in the DataEnvironment, so we can whip through the objects without having to do an AMembers() or some work around.
Next
Reply
Map
View

Click here to load this message in the networking platform