main logo
Subject: Re: AutoYield Property
Author: Paul McNett

Posted: 2003/02/28 22:47:00
 
View Entire Thread
New Search


On Friday 28 February 2003 06:46 pm, Ed Leafe wrote:

> I like having this one global reference simply so that I can
> simplify inter-object messaging. If objects need to send a message to
> each other, there are only three intermediaries I use: This.Parent,
> Thisform, and goApp.

Same here, but I've been getting away from using THISFORM, because the mo=
re=20
I think about it a form is nothing but a glorified container anyway, and=20
objects can be made more portable by not assuming that the required=20
functionality is at the form level, unless it is something very=20
form-specific (ThisForm.ShowWindow, for example). =20

I've been taking to using containers to contain all the controls I used t=
o=20
put directly on a form, and then instantiating that container on a generi=
c=20
form at runtime. This had made a few object groupings more portable for =
me=20
(on a page of a pageframe on one form, directly on a form in a different=20
context, etc.)

But yeah, defining the oapp object in the main.prg as local is actually=20
global accessible by everyone, which is a handy assumption to rely upon.

--=20
Paul McNett - p (AT) ulmcnett .DO.T com
Hollister, California, USA



 
©2003 Paul McNett
<-- Prior Message New Search Next Message -->