Sorry I'm so late jumping into this thread. I'm way behind or e-mail.

Something I have done in similar situations is to place the properties
inthe child object (in this care the frame). The form can still
reference then, and so can the frame.

 Obviously there are OOD considerations such as encapsulation which
will have to be considered for your specific situation.

Just a thought,
Roger C. Morgan II

--- In [email protected], "serenska" <[EMAIL PROTECTED]> wrote:
> I have created a TFrame which I would like to share among several
> forms within my application.  Each of the forms will have a few
> identically named public variables.  Each of these public variables
> will have the same purpose.
> 
> My question is, how can I access these variables within the logic
> within the TFrame?
> 
> I know that I can explicitly reference them by using a syntax like: 
> 
>  FrameVariable := TfrmParent.VariableName;
> 
> However, doing this defeats the purpose of sharing the frame's code
> among many forms.  
> 
> I tried various syntaxes such as FrameVariable := parent.VariableName,
> but nothing seemed to work.  Is there a way to do this?
> 
> Thanks in advance.
> 
> Steven J. Serenska





-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to