General information
Title:
Help - In need of accessing all objects in FORM
Help,
I'm currently writing a program in VFP8 where I need to iterate thru all objects in a form in order to read/track objects (i.e.: controlsource).
While reading Collection objects using the 'FOR EACH' loop command is fairly simple, it does get a bit tougher when your form has lots of container,pageframes/pages,grids etc...
Does anyone out there have code solution for a clean/quick way for reading every object (i.e.: collections) in a form.
*------------------------------------
*- Current code
*------------------------------------
FOR EACH loObj IN thisform.Objects
IF PEMSTATUS(loObj,'ControlSource',5)
this.DoMyCode(loObj)
ENDIF
ENDFOR loObj
*- How can I make code above read every object in form whether object is
*- in a container,pageframe/page or grid.
Thanks!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only