Autor Beitrag
Palmetshofer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: Di 01.10.02 18:35 
Ich habe eine SaveToFile procedur in meinem Programm, sogar ganz korrekt, und das wird in die Textdatei geschrieben:

{\rtf1\ansi\ansicpg1252\deff0\deflang3079{\fonttbl{\f0\fnil\fcharset0 Verdana;}}
\viewkind4\uc1\pard\f0\fs20 P ( -2|-8 )
\par
\par P1 = -2 P2 = -8
\par r = 8,25
\par
\par P [ 8,25;255,96 ]
\par
\par }


was mache ich da falsch?

Proc.:
ausblenden Quelltext
1:
2:
3:
4:
If SaveDialog1.Execute = True then
begin
Richedit2.Lines.SaveToFile(SaveDialog1.FileName);
end;

_________________
Menschen stolpern nicht über Berge, sondern über Maulwurfshügel.
Konfuzius
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 01.10.02 19:03 
du machst nichts falsch.
Das ist RichtTextFormat (rtf) und kein Text-Format (plainText, ANSI). Da die Funktion von einem RichEdit kommt, ist es nur natürlich, daß der das auch RichText-fomatiert, denn man kann ja so Sachen wie Fett, Schriftgröße, Unterstreichen nicht in einem TextFile machen.
Versuch's mit 'ner Memo, dann klappt's.
Oder lies die Zeilen einzelnd aus und schreibe sie manuell in eine Datei...

Tschüß
Thomas

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 01.10.02 19:06 
Oder die PlainText-Eigenschaft von RichEdit auf TRUE stellen.
Palmetshofer Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: Di 01.10.02 19:14 
Danke vielmals lukie!

_________________
Menschen stolpern nicht über Berge, sondern über Maulwurfshügel.
Konfuzius
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 01.10.02 19:17 
lukie :shock: Wer ist lukie? :roll:
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 01.10.02 19:24 
wie?
So eine igenschaft gibt's?
Coole Sache...

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 02.10.02 18:06 
das war mir auch neu..... :shock: aber jetzt bin ich wieder schlauer als früher !!!

_________________
In the beginning was the word.
And the word was content-type: text/plain.