Re: Edit one form property from another form

Author: MB Software Solutions, LLC

Posted: 2009-07-29 at 11:29:17

Dave Crozier wrote:

> Jim,

> If you Open the form and retrieve back a form reference you can use this to

> access the properties:

>

> Do form MainForm to oMainForm

>

> Do form Form2 with oMainForm

>

>

> In the Form2 you can now use oMainform to manipulate the properties e.g

> oMainform.Caption="Newcaption" etc. etc.

>

> Dave Crozier

I think Dave meant to say NAME instead of TO. Of course that assumes a

Modeless form unless you use the NOSHOW clause.

Do form MainForm NAME oMainForm NOSHOW

Do form Form2 with oMainForm

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

©2009 MB Software Solutions, LLC