<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2>Todd,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2>I fear you're going to have to delve into the depths of
RTTI (Run Time Type Information) which is Delphi Win32's idea of reflection, if
you're familiar with the term.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2>You should be able to access private fields using RTTI, but
there are limitations/requirements and it will require a fair bit of code, and I
haven't done that much work with RTTI (not recently anyway), so can't really
tell you much more.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2>Googling for "delphi rtti" should get you
started...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2>HTH,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=861121523-09062005><FONT face=Arial
color=#0000ff size=2>Conor</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT size=2><FONT
face=Tahoma><B>From:</B> delphi-bounces@ns3.123.co.nz
[mailto:delphi-bounces@ns3.123.co.nz] <B>On Behalf Of </B>Todd Martin<BR><SPAN
class=861121523-09062005><FONT face=Arial
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT size=2><FONT
face=Arial>Thanks Conor. I understand that, but I thought there was a way to get
at private fields as well. I know it defeats the purpose of making a field
private, but that's another discussion.</FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=lists@conor.org.uk href="mailto:lists@conor.org.uk">Conor Boyd</A>
</DIV>
<DIV style="FONT: 10pt arial"><SPAN><FONT
color=#0000ff> </FONT></SPAN></DIV>
<DIV style="FONT: 10pt arial"><SPAN><FONT color=#0000ff>If I understand you
correctly...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial
color=#0000ff size=2>You can increase the visibility of a property in
sub-classes by simply redeclaring the property in a declaration section with
greater visibility (e.g. redeclaring a protected property in the public
section), but I don't think you can for fields.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial
color=#0000ff size=2>A title in the Delphi 5 help called "Property overrides
and redeclarations" may provide more information.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial
color=#0000ff size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial
color=#0000ff size=2>Conor</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
size=2><FONT face=Tahoma><B>From:</B> delphi-bounces@ns3.123.co.nz
[mailto:delphi-bounces@ns3.123.co.nz] <B>On Behalf Of </B>Todd Martin<BR><SPAN
class=861121523-09062005><FONT face=Arial
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
size=2><FONT face=Arial>I seem to recall someone posting a message showing a
hack of how to access a private field in an ancestor class.
</FONT></FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Something along the lines of redeclaring the
field in the descendant class. I've tried to find the solution, but with
no luck. </FONT></DIV>
<DIV><FONT face=Arial size=2>Can someone please remind me.
Thanks.</FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>