Assigning TRichedit.Lines to a TStrings variable
Posted on 2000-05-15
Take a look at this code.
ChatWnd is a TRichEdit.
Server : TStrings;
P : Pointer;
Server := TStringList.Create;
P := @ChatWnd.Lines;
TStrings(P^) := Server;
This makes the "Server" text go into Both Server and ChatWnd.Lines but the
painting or something of ChatWnd seems to never occur anymore,
I am missing something essential.