<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>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></DIV>
<DIV>&nbsp;</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"><B>To:</B> <A title=delphi@ns3.123.co.nz 
  href="mailto:delphi@ns3.123.co.nz">'NZ Borland Developers Group - Delphi 
  List'</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, June 10, 2005 10:44 
AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [DUG] Accessing an ancestor 
  class private field</DIV>
  <DIV><BR></DIV>
  <DIV dir=ltr align=left><SPAN class=916363922-09062005><FONT face=Arial 
  color=#0000ff size=2>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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>
  <FONT face=Tahoma size=2><B>From:</B> delphi-bounces@ns3.123.co.nz 
  [mailto:delphi-bounces@ns3.123.co.nz] <B>On Behalf Of </B>Todd 
  Martin<BR><B>Sent:</B> Friday, 10 June 2005 10:28 a.m.<BR><B>To:</B> NZ 
  Borland Developers Group - Delphi List<BR><B>Subject:</B> [DUG] Accessing an 
  ancestor class private field<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><FONT face=Arial size=2>
  <DIV><FONT face=Arial size=2>I seem to recall someone posting a message 
  showing a hack of how to access a private field in an ancestor class. 
  </FONT></DIV>
  <DIV><FONT face=Arial size=2>Something along the lines of redeclaring the 
  field in the descendant class. </FONT><FONT face=Arial size=2>I've&nbsp;tried 
  to find the solution, but with no luck. </FONT></DIV>
  <DIV><FONT face=Arial size=2>Can someone please remind me. </FONT><FONT 
  face=Arial size=2>Thanks.</FONT></DIV></FONT></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Delphi mailing 
  list<BR>Delphi@ns3.123.co.nz<BR>http://ns3.123.co.nz/mailman/listinfo/delphi<BR></BLOCKQUOTE></BODY></HTML>