Index
2009-07-29 08:08Jim Harvey : Edit one form property from another form
2009-07-29 08:41Lew : Re: Edit one form property from another form
2009-07-29 08:46Rick Schummer : RE: Edit one form property from another form
2009-07-29 09:00Dave Crozier : RE: Edit one form property from another form
2009-07-29 11:29MB Software Solutions, LLC : Re: Edit one form property from another form
2009-07-29 11:56Dave Crozier : RE: Edit one form property from another form
2009-07-29 12:24Allen : RE: Edit one form property from another form
2009-07-29 14:01Rick Schummer : RE: Edit one form property from another form
2009-07-29 14:26MB Software Solutions, LLC : Re: Edit one form property from another form
2009-07-29 14:40Rick Schummer : RE: Edit one form property from another form
Back to top
Edit one form property from another form

Author: Jim Harvey

Posted: 2009-07-29 08:08:07   Link

For formatting reasons on the screen I have a button on a form that allows

the user to turn the title bar on or off for that current form.

Can the title bar setting for that form be controlled remotely from another

a similar control on another form?

James E Harvey

Hanover Shoe Farms, Inc.

M.I.S./Corresponding Officer

Off: 717-637-8931

fax: 717-637-6766

email: jharvey@hanoverpa.com

©2009 Jim Harvey
Back to top
Re: Edit one form property from another form

Author: Lew

Posted: 2009-07-29 08:41:48   Link

WWVzLiBMb29rIGluIHRoZSBfdmZwLmZvcm1zIGNvbGxlY3Rpb24gZm9yIGFuIG9iamVjdCByZWZl

cmVuY2UgdG8gdGhlIGZvcm0geW91IHdhbnQgdG8gbW9kaWZ5Lg0KLS0tLS1PcmlnaW5hbCBNZXNz

YWdlLS0tLS0NCkZyb206ICJKaW0gSGFydmV5IiA8amhhcnZleUBoYW5vdmVycGEuY29tPg0KDQpE

YXRlOiBXZWQsIDI5IEp1bCAyMDA5IDA4OjA4OjA3IA0KVG86IDxwcm9mb3h0ZWNoQGxlYWZlLmNv

bT4NClN1YmplY3Q6IEVkaXQgb25lIGZvcm0gcHJvcGVydHkgZnJvbSBhbm90aGVyIGZvcm0NCg0K

DQpGb3IgZm9ybWF0dGluZyByZWFzb25zIG9uIHRoZSBzY3JlZW4gSSBoYXZlIGEgYnV0dG9uIG9u

IGEgZm9ybSB0aGF0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UgYXV0aG9yLCBhbmQgZG8gbm90IGNvbnN0aXR1dGUgbGVnYWwgb3IgbWVkaWNh

bCBhZHZpY2UuIFRoaXMgc3RhdGVtZW50IGlzIGFkZGVkIHRvIHRoZSBtZXNzYWdlcyBmb3IgdGhv

c2UgbGF3eWVycyB3aG8gYXJlIHRvbyBzdHVwaWQgdG8gc2VlIHRoZSBvYnZpb3VzLg0KDQoNClJl

cG9ydCBbT1RdIEFidXNlOiBodHRwOi8vbGVhZmUuY29tL3JlcG9ydEFidXNlLzAwMDkwMWNhMTA0

NSQzYzBhZjdhMCRiNDIwZTZlMCRAY29tDQo=

©2009 Lew
Back to top
RE: Edit one form property from another form

Author: Rick Schummer

Posted: 2009-07-29 08:46:32   Link

>> Can the title bar setting for that form be controlled remotely from

another a similar control on another form?<<

Sure, all you need is a reference to the other form. Once you have the

reference you can manipulate properties the same way you do on the form

directly.

Rick

White Light Computing, Inc.

www.whitelightcomputing.com

www.swfox.net

www.rickschummer.com

©2009 Rick Schummer
Back to top
RE: Edit one form property from another form

Author: Dave Crozier

Posted: 2009-07-29 09:00:15   Link

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

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

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

Of Jim Harvey

Sent: 29 July 2009 13:08

To: 'ProFox Email List'

Subject: Edit one form property from another form

For formatting reasons on the screen I have a button on a form that allows

the user to turn the title bar on or off for that current form.

Can the title bar setting for that form be controlled remotely from another

a similar control on another form?

James E Harvey

Hanover Shoe Farms, Inc.

M.I.S./Corresponding Officer

Off: 717-637-8931

fax: 717-637-6766

email: jharvey@hanoverpa.com

[excessive quoting removed by server]

©2009 Dave Crozier
Back to top
Re: Edit one form property from another form

Author: MB Software Solutions, LLC

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

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
Back to top
RE: Edit one form property from another form

Author: Dave Crozier

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

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
Back to top
RE: Edit one form property from another form

Author: Allen

Posted: 2009-07-29 12:24:03   Link

I seem to remember a bad gotcha for _vfp.forms or _screen.forms as it

behaves differently between development and runtime.

Al

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

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

Behalf Of Lew

Sent: 29 July 2009 14:42

To: profoxtech@leafe.com

Subject: Re: Edit one form property from another form

Yes. Look in the _vfp.forms collection for an object reference to the form

you want to modify.

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

©2009 Allen
Back to top
RE: Edit one form property from another form

Author: Rick Schummer

Posted: 2009-07-29 14:01:44   Link

>> I seem to remember a bad gotcha for _vfp.forms or _screen.forms as it

behaves differently between development and runtime.<<

It is always been considered a best practice to create a forms manager

object so you don't rely on behavior of the forms collection.

Rick

White Light Computing, Inc.

www.whitelightcomputing.com

www.swfox.net

www.rickschummer.com

©2009 Rick Schummer
Back to top
Re: Edit one form property from another form

Author: MB Software Solutions, LLC

Posted: 2009-07-29 14:26:04   Link

Rick Schummer wrote:

>>> I seem to remember a bad gotcha for _vfp.forms or _screen.forms as it

> behaves differently between development and runtime.<<

>

> It is always been considered a best practice to create a forms manager

> object so you don't rely on behavior of the forms collection.

There's sample code of a forms manager object in the 1001 Things book

from HWP, iirc:

http://www.hentzenwerke.com/catalog/kilofox.htm

One of the authors frequents here and may be able to confirm and in fact

tell you the page#. I've got the book at home but can't recall the

page# at present as I'm at the day employer (not home). ;-)

--

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
Back to top
RE: Edit one form property from another form

Author: Rick Schummer

Posted: 2009-07-29 14:40:33   Link

>> One of the authors frequents here and may be able to confirm and in fact

tell you the page#. <<

Page 339, for 14 pages of in-depth discussion on what it does and how it

does it.

Rick

White Light Computing, Inc.

www.whitelightcomputing.com

www.swfox.net

www.rickschummer.com

©2009 Rick Schummer