wxy
-
Gesamte Inhalte
1 -
Benutzer seit
-
Letzter Besuch
Schicke uns eine Nachricht!
Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.
Delphi, memo textformat
in Delphi/RPG+CL/Sonstige
Geschrieben
hallo,
mit formatierung speichern:
wie oben..
anstatt:
Query1.FieldByName('RichText').asString:= GetRtFText(RichEdit1);
mit der Function GetRtFText:
function GetRTFText(ARichEdit: TRichedit): string;
var
ss: TStringStream;
emptystr: string;
begin
emptystr := '';
ss := TStringStream.Create(emptystr);
try
ARichEdit.PlainText := False;
ARichEdit.Lines.SaveToStream(ss);
Result := ss.DataString;
finally
ss.Free
end;
end;
Greeze