Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
101 VFP7 Things, Part 6
Message
De
08/12/2000 09:36:41
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
101 VFP7 Things, Part 6
Divers
Thread ID:
00450771
Message ID:
00450771
Vues:
73
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform