...and if that doesn't work, use the controlcount and a reverse loop (FOR lnLoop = this.ControlCount to 1 step -1) to remove control(lnLoop) in similar fashion.
--Michael
Michael Babcock, MCP President, MB Software Solutions (http://mbsoftwaresolutions.com) President, CPVFUG (http://cpvfug.org)
Purchases from http://foxtoolbox.com help VFP user groups!! Please check this site out before you decide to buy elsewhere...very competitive and beneficial to our community!!
------------------------------------------------ On Mon, 1 Sep 2003 11:34:47 +1000, "Andrew Coates" <candrew (AT) civilsolutions .DOT com.au> wrote:
> Hi Huw, > > How about (off the top of my head) > > For each loPage in thisform.Pageframe1.pages > for each loObject in loPage.objects > loPage.removeobject(loObject.name) > endfor > Endfor > > Cheers, > > Andrew Coates > Civil Solutions > Tel +61 2 9344 4993 (GMT+10) Fax + 61 2 9345 0893 > www.civilsolutions.com.au
©2003 vfpmcp (AT) mbsoftwaresolutions D.OT com |