Autor Beitrag
110022
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: Mi 10.10.07 13:55 
wie kann ich eine speichernunter funktion programmieren?
das selbe auch für eine öffnen auf Funktion?


bitte keine Forensuche links

wenns geht mit Quelltext


Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 10.10.2007 um 15:06
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mi 10.10.07 13:57 
(a) mit Delphi
(b) TOpenDialog und TSaveDialog + F1
(c) oder hier

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 10.10.07 14:04 
TStringlist hat die Methoden SaveToFile und LoadFromFile. Das dürfte wohl am einfachsten sein.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 10.10.07 14:06 
Vieleicht sollten wir erst mal klären, was überhaupt gespeichert werden soll ;-)

_________________
We are, we were and will not be.
110022 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: Mi 10.10.07 14:09 
ich will den text aus einem memo feld
an einer beliebigen stelle speichern und von beliebigen stellen .txt dateien
in das memo feld laden
Miri
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Mi 10.10.07 14:13 
Um die Texte an beliebige Stellen zu speichern, hilft dir user profile iconKrokos Tipp:


user profile iconKroko hat folgendes geschrieben:
(a) mit Delphi
(b) TOpenDialog und TSaveDialog + F1
(c) oder [url=www.dsdt.info/tutorials/?cat=11]hier[/url]

_________________
Anonymes Eckenkind
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 10.10.07 14:30 
user profile iconMiri hat folgendes geschrieben:
Um die Texte an beliebige Stellen zu speichern, hilft dir user profile iconKrokos Tipp:


user profile iconKroko hat folgendes geschrieben:
(a) mit Delphi
(b) TOpenDialog und TSaveDialog + F1
(c) oder [url=www.dsdt.info/tutorials/?cat=11]hier[/url]

Und meiner. :mrgreen: Er meint ja vermutlich "in einer beliebigen Datei".
ausblenden Delphi-Quelltext
1:
If SaveDialog1.Execute then Memo1.Lines.SaveToFile(SaveDialog1.Filename);					

Analog für OpenDialog mit LoadFromFile.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
tomminges
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Do 22.11.07 22:17 
Hey

Bin nen Anfänger :P hehe

em ich hab mal ne Speicherfunktion geschrieben aber ohne das "TOpenDialog und TSaveDialog" sonder einfach nur "savetofile"
für was soll also das "TOpenDialog und TSaveDialog" sein?

wär cool wenn mir einer dies beantworten könnt... :)



MfG
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 22.11.07 22:19 
user profile icontomminges hat folgendes geschrieben:
für was soll also das "TOpenDialog und TSaveDialog" sein?

wär cool wenn mir einer dies beantworten könnt... :)

Nimm all deinen mut zusammen und tipp die beiden Wörter einfach mal in der Hilfe ein und lass dich überraschen. ;)