Autor Beitrag
Unknown
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 19:58 
Hallo,
ike bins wieder.
ich hab da ma so ne frage(Ich kann euch leider keinen Quelltext schicken)
Ich habe 2 buttons und ein Textfeld.
Der erste button heißt save der andere load und Textfeld heißt Eingabe.
Falls man auf save klickt soll die eingabe im Textfeld verschlüsselt gespeichert(Als Textdokument glaube ich)werden.
Es reicht auch unverschlüsselt.
Falls man dann delphi schlißt und wieder aufmacht und auf load drückt, soll dass gespeicherte wieder geladen werden.
Wie geht das :?: :?: :?: :?: :?:
Bitte um Hilfe, am besten mit Quelltext(mit Beschreibung wenns geht).
Aba nix kompliziertes.(Bin anfänger :( )
Jangojack
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39

win xp
Delphi 2005 personal,Delphi 7 Enterprise
BeitragVerfasst: Do 07.09.06 20:05 
Titel: hi
ich weiß jetzt ja nicht was du für ein eingabefeld hast aber
sollte es z.b. ein tmemo sein würde das hier gehn...

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.SavebuttonClick(Sender: TObject);
begin
memo1.Lines.SaveToFile('C:\deinpfad\bla.txt');
end;

procedure TForm1.loadbuttonClick(Sender: TObject);
begin
memo1.Lines.LoadFromFile('C:\der gleichepfad\bla.txt');
end;

musst dazunatürlich 2 buttons auf deiner form haben die

1.Savebutton
2.loadbuttonClick

heissen ^^

EDIT: hoffe das ist genau genug
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 20:11 
:shock:
Was ist ein Memo?????????
Ich meine ein Label :D :D :D :D
Ne Frage nebenbei, wie hast du den Quelltext reinbekommen :?: :?: :?: :?: :?:
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Do 07.09.06 20:14 
hi
in einem Label kannst du aber keine eingaben machen :gruebel:
Gruß

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Jangojack
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39

win xp
Delphi 2005 personal,Delphi 7 Enterprise
BeitragVerfasst: Do 07.09.06 20:16 
Titel: moment
Moment mal - nur das ich das richtig verstehe...

du hast ein tlable und willst darüber text eingeben und den dann speichern

EDIT: Da kam mir einer zuvor :)
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 20:17 
Na bei diesem....
Falls du da oben auf Standart klickst und dann bei diesem Feld mit dem großem "A"....
Das ist so was ähnliches wie ein Label glaub ich.........
Ich will in diesem Teil einen Text schreiben und DER text soll dann gespeichert werden


Zuletzt bearbeitet von Unknown am Do 07.09.06 20:19, insgesamt 1-mal bearbeitet
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Do 07.09.06 20:19 
Also irgendwie verstehe ich dich nich meinst du ein Edit Feld oder was?

wie lange beschäftigst du dich schon mit delphi?

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 20:21 
Genau Edit :idea:
Weiß nich
Habs eigentlich nie gelernt
habs mir so alleine beigebracht......
Kann aber schon son bissel und hab schon ein paar spiele entworfen....
Hab die Spiele aber nicht zuende geprogt weil es langweilig wurde...
Hab so ungefähr 3 halbe spiele :lol: :lol: :lol:


Zuletzt bearbeitet von Unknown am Do 07.09.06 20:23, insgesamt 1-mal bearbeitet
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 20:22 
Also zurück zur Frage.
Kann man diesen Text im Speichern.
Und dann wieder laden


Zuletzt bearbeitet von Unknown am Do 07.09.06 20:23, insgesamt 1-mal bearbeitet
Jangojack
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39

win xp
Delphi 2005 personal,Delphi 7 Enterprise
BeitragVerfasst: Do 07.09.06 20:23 
Titel: also
wenn du etwas länger mit dem cursor oben auf der komponente bleibst

wird dir angezeigt wie die heißt...

wäre schonmal gut zu wissen ^^
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 20:24 
jaja habs nur vergessen..... 8)
Jangojack
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39

win xp
Delphi 2005 personal,Delphi 7 Enterprise
BeitragVerfasst: Do 07.09.06 20:29 
Titel: hmmm²
also die lösung mit einem memo feld steht ja schon oben und die mit einem

edit feld ist hier:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
var
  List: TStrings;
begin
  List := TStringList.Create;
try
  List.Add(Edit1.Text);
  List.SaveToFile('C:\Datei.txt');
finally
  List.Free;
end;
end;


und konkretisiere deine fragen bitte etwas näher weil es sonst für uns mehr

ein rätzelraten als ein helfen ist ^^ :)

mfg johannes
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Do 07.09.06 20:30 
Ja klar kann man das ...hast du dich schon mal mit Textdateien beschäftigt?
So Begriffe wie.

AssignFile
Rewrite
Write
Read
usw.

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 20:33 
@ der Berliner
Eigentlich noch nicht
Wie gesagt(oder auch nicht)ich bin new
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 20:35 
@ Jangojack
Danke

Kann leider kein Wort verstehen aber trozdem.....
Ich versuche es dann mal mit Tmemo
Jangojack
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39

win xp
Delphi 2005 personal,Delphi 7 Enterprise
BeitragVerfasst: Do 07.09.06 20:37 
Titel: o_0?
und dann hast du schon 3 spiele geschrieben o_0?

schreib einfach hier deinen code hin

das machtes allen leichter

mfg
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Do 07.09.06 20:41 
Das isses ja grad.......
Ich hab noch kenen Text fürn save.....
Ich brauche das ja grad um es zu schaffen, Spielstände in meinen Spielen zu "machen".
Aber trozdem Danke.
ihr braucht nicht weiter zu schreiben.
Ich werde einfach such :les: