<!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.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>RM> No its not possible to access private
members without being in the same pas. umm couldn't you just store an
array of stringlist positions instead or pointers to a string</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I can't store the Index positions because it's a
sorted list and they will change as more items are added.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><EM>DC> Why can't you use at the Objects property?</EM></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>The Objects property is already being used, and anyway, this is referencing
in the wrong direction. I need a pointer to the string list not the other
way around. It's a plan I came up with to reduce memory
requirements and provide fast retrieval for upwards of 50,000 strings.</DIV>
<DIV> </DIV>
<DIV><EM>DC>THackedStringList =
class(TStrings)<BR>public<BR> FList:
PStringItemList;<BR>end;<BR></EM></DIV>
<DIV>According to RM, this is not possible. I had already coded it this
way assuming it would work, but apparently only Protected members can be made
visible, not Private.</DIV>
<DIV> </DIV>
<DIV>Cheers,<BR>Ross.</DIV></FONT>
<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=rob@wildsoft.co.nz href="mailto:rob@wildsoft.co.nz">Robert martin</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, September 17, 2004 2:20
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [DUG]
TStringList.FList</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>No its not possible to access private members
without being in the same pas. umm couldn't you just store an array of
stringlist positions instead or pointers to a string (not knowing what you are
trying to do).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would look for other ways to implement your
functionality or build your own TStringList by copying the source
out. Don't change classes.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Rob Martin<BR>Software Engineer<BR> <BR>phone 03 377 0495<BR>fax 03
377 0496 <BR>web <A
href="http://www.chreos.com">www.chreos.com</A><BR>Wild Software Ltd</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=ross@stationplaylist.com
href="mailto:ross@stationplaylist.com">Ross Levis</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, September 17, 2004 2:02
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [DUG] TStringList.FList</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><BR></DIV>
<DIV><FONT face=Arial size=2>Is it possible to make visible a private
variable in an ancestor class? I need to obtain the pointer to
the FList record array in a TStringList so I can store the pointer to each
string in the array.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If not then I may be faced with
modifying the Classes unit or taking a copy of the TStringList code from
the unit and making my own TStringList. Any ideas?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,<BR>Ross.</FONT></DIV>
<P></P><FONT face=Arial size=2></FONT>
<HR>
<P></P>_______________________________________________<BR>Delphi mailing
list<BR>Delphi@ns3.123.co.nz<BR>http://ns3.123.co.nz/mailman/listinfo/delphi<BR></BLOCKQUOTE>
<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>