Einzelnen Beitrag anzeigen

mr2

Registriert seit: 3. Mai 2003
140 Beiträge
 
Delphi 2006 Enterprise
 
#8

Re: Formatierungsangaben eines RichEdit speichern

  Alt 8. Okt 2007, 21:35
wie wäre es denn mit

Delphi-Quellcode:
procedure SteamToRichText(re: TRichEdit; sDataStr: string);
var
  ss: TStringStream;
begin
  ss := TStringStream.Create(sDataStr);
  try
    re.Lines.LoadFromStream(ss);
  finally
    ss.Free;
  end;
end;
?
"... we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we don't know. But there are also unknown unknowns - the ones we don't know we don't know."
  Mit Zitat antworten Zitat