Autor Beitrag
NeoXan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 81

WinXP Sp1 Home
D7 Prof
BeitragVerfasst: Fr 06.06.03 20:40 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
tblAdressen.Insert; // Neuen Datensatz an der Aktuellen Position einfügen 
tblAdressen.FieldByName('Nachname').AsString := Edit1.Text; 
tblAdressen.Post; 
tblAdressen.Append; // Neuen Datensatz an die Tabelle anhängen 
tblAdressen.FieldByName('Nachname').AsString := Edit1.Text; 
tblAdressen.Post;


Das ist der Code aus einem Tut hier...aber wie macht man das wenn das Feld ein Memo Feld ist??? (Also das DB Feld und das normale Feld auch ein Memo Feld...)
Also klar könnte man ja
ausblenden Quelltext
1:
2:
3:
4:
for a:=0 to lyrics.lines.count-1 do
 begin
  lyrics2:=lyrics2+lyrics.Lines[a];
 end;


Aber dann geht ja die Formatierung flöten...
Michael Stenzel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 133


D3 Prof, D7 PE
BeitragVerfasst: Fr 06.06.03 22:50 
Du kanst über die Eigenschaft Text den Inhalt des Memo's zuweisen.

ausblenden Delphi-Quelltext
1:
DBMemo1.Text := Memo1.Text;					


mfg
Michael
NeoXan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 81

WinXP Sp1 Home
D7 Prof
BeitragVerfasst: Sa 07.06.03 00:40 
[code]Datamodule1.Table1Lyrics.Text := lyrics.Text;[/code}
dann kommt aber eine Fehlermeldung:
Cannot Access Field "Lyrics" as Type Text

EDIT...

okay hat jetzt doch geklappt...thx