RE: Edit one form property from another form

Author: Dave Crozier

Posted: 2009-07-29 at 11:56:42

Mike,

Well spotted! Senior moment here...DOH

Dave Crozier

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of MB Software Solutions,LLC

Sent: 29 July 2009 16:29

To: ProFox Email List

Subject: Re: Edit one form property from another form

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

[excessive quoting removed by server]

©2009 Dave Crozier