main logo
Subject: RE: Removing all objects from pageframe
Author: vfpmcp /AT/ mbsoftwaresolutions DOT com
Posted: 2003/08/31 21:46:00
 
View Entire Thread
New Search


...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
<-- Prior Message New Search Next Message -->