Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iterate through all objects on form
Message
 
À
30/12/2008 16:11:09
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01370241
Message ID:
01370257
Vues:
31
Jay,

Just a quick and dirty solution might look like this
* Method thisform.ShowControls
lparameters toControl
local loControl, loPage, loColumn
do case
	case Pemstatus(toControl, 'Controls', 5)
		for each loControl in toControl.Controls
			? 'Control:', loControl.Name
			thisform.ShowControls(loControl)
		endfor
	case Pemstatus(toControl, 'Columns', 5)
		for each loColumn in toControl.Columns
			? 'Column:', loColumn.Name
			thisform.ShowControls(loColumn)
		endfor
	case Pemstatus(toControl, 'Pages', 5)
		for each loPage in toControl.Pages
			? 'Page:', loPage.Name
			thisform.ShowControls(loPage)
		endfor
endcase
? 'Object:', toControl.Name
[Update] Forgot to add the object
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform