Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iterate through all objects on form
Message
 
To
30/12/2008 16:11:09
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01370241
Message ID:
01370257
Views:
30
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform