Why can't you use at the Objects property?
The first rule of OO programming is don't try to get at private members. It
is private for a good reason.
Having said that, here is a hack ...
THackedStringList = class(TStrings)
public
FList: PStringItemList;
end;
You may need to change it to match the declaration of TStringList for
different versions of Delphi.
var
MyStringList: TStringList;
begin
// Access the private member...
THackedStringList (MystringList).FList
----- Original Message -----
From: "Ross Levis" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Friday, September 17, 2004 2:02 PM
Subject: [DUG] TStringList.FList
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.
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?
Cheers,
Ross.
----------------------------------------------------------------------------
----
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi