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

Win XP
Delphi 7
BeitragVerfasst: Mi 04.10.06 20:12 
Hallo ich bins wieder!!!! :D :D :D :D :P :P

ich versuche gerade ein memo zu speichern, nein kleiner Scherz :P :P :P .
Nein, ich versuche gerade 3 oder mehr edits in ein memo zu packen.
Das heißt edit1.text, edit2.text....... untereinander in ein memo zu packen.
Das abspeichern kann ich, aber es nicht verschlüsseln, wie geht das (gut verschlüsseln).
Danach möchte ich beim laden noch das das memo diese .txt wieder aufnimmt und dann wieder
in der richtigen reihenfolge wieder die texte wieder an die edits zurück gibt.
Auf deutsch heißt das:
edit1.text soll in Zeile 1 ins memo
edit2.text soll in Zeile 2 ins memo
.........
Dann soll alles VERSCHLÜSSELT gespeichert werden(nur das verschlüsseln kann ich nicht, es sollen aber auch Buchstaben zusammen mit Zahlen verschlüsselt werden können!)
.........
Dann soll man später wieder alles geladen werden können,das heißt:
ENtschlüsseön, zurück ins memo , und dann wieder in die richtigen edits!!!! :shock: :shock:

Puuh das ist viel, aber ihr Profis könnt das ja!! 8) 8)

P.s: kann man das memo auch als was anderes speichern als als Textdatei (.txt)
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mi 04.10.06 20:27 
Ist die Frage zu schwer oder mag mich keiner :cry: :cry:
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 04.10.06 20:30 
Vielleicht verstehen noch mehrere wie ich deine Frage nicht ganz. Was meinst du damit Edits in eine memo zu packen?

_________________
Markus Kinzler.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 04.10.06 20:32 
@PS: Du kannst da auch statt .txt .unknown schreiben, wenn du willst, das ist dem Memo ziemlich egal. :mrgreen:

Du könntest dir mal die XOR-Verschlüsselung angucken.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 04.10.06 20:33 
user profile iconmkinzler hat folgendes geschrieben:
Vielleicht verstehen noch mehrere wie ich deine Frage nicht ganz. Was meinst du damit Edits in eine memo zu packen?

Er meint das imho so:
ausblenden Delphi-Quelltext
1:
2:
3:
memo1.lines.add(edit1.text);
memo1.lines.add(edit2.text);
memo1.lines.add(edit3.text);

Dass es sich bei einer Vielzahl von Edits lohnt, FindComponent zu benutzen, sei hier mal vernachlässigt.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mi 04.10.06 20:36 
Also danke, dass mit XOR schaue ich mir noch ma an.
Also add hört sich schon ma janz gut an
das funzt auch
aber das mit dem laden hat mir noch keiner erklärt

[edit1] bei XOR steht man kann nur strings kodieren. also kann man keine integers kodieren??
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 04.10.06 20:39 
LoadFromFile? :eyecrazy: Suchfunktion?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 04.10.06 20:40 
Edit.Text ist doch ein String.

_________________
Markus Kinzler.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 04.10.06 20:40 
user profile iconUnknown hat folgendes geschrieben:
[edit1] bei XOR steht man kann nur strings kodieren. also kann man keine integers kodieren??

Wenn du die integer abspeichern willst, dann musst du sie ja nach deinem Weg auch ins Memo schreiben und dann sind es Strings.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mi 04.10.06 20:41 
man kann da doch auch :'A5i8' reinschreiben. Ist das dann immer noch ein string

[edit1]jaja ok danke. aber wie lade ich die Zeilen des memos in die dazugehörigen edits??
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 04.10.06 20:42 
user profile iconUnknown hat folgendes geschrieben:
man kann da doch auch :'A5i8' reinschreiben. Ist das dann immer noch ein string
ja auch wenn du '123' reinschreibst ist das ein String.

_________________
Markus Kinzler.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 04.10.06 20:42 
user profile iconUnknown hat folgendes geschrieben:
man kann da doch auch :'A5i8' reinschreiben. Ist das dann immer noch ein string

[edit1]jaja ok danke. aber wie lade ich die Zeilen des memos in die dazugehörigen edits??

Ja aber na sicher. :zwinker:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mi 04.10.06 20:45 
Geht das so
edit1.text:=memo1.text???
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 04.10.06 20:52 
user profile iconUnknown hat folgendes geschrieben:
Geht das so
edit1.text:=memo1.text???
Grundsätzlich ja. Memo.Text sind halt alle Zeilen des Memos.

_________________
Markus Kinzler.
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mi 04.10.06 20:54 
ach dann ist det ja falsch.
Ich will das die erste Zeile ins erste Edit kommt. die zweite Zeile ins zweite edit und so weiter.....
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 04.10.06 20:56 
user profile iconUnknown hat folgendes geschrieben:
ach dann ist det ja falsch.
Ich will das die erste Zeile ins erste Edit kommt. die zweite Zeile ins zweite edit und so weiter.....

Wo ist das Problem?
ausblenden Delphi-Quelltext
1:
2:
3:
edit1.text := memo1.lines[0];
edit2.text := memo1.lines[1];
edit3.text := memo1.lines[2];

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mi 04.10.06 20:59 
Vieeeeeeeeeeeeeeeelen Dank
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 04.10.06 21:01 
user profile iconUnknown hat folgendes geschrieben:
Vieeeeeeeeeeeeeeeelen Dank

Immer wieder gerne ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot