Autor Beitrag
Hendrik
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Mo 15.07.02 13:56 
Hallo
Ich hab in ner DBase ein TMemo Feld. Nun möchte ich den Inhalt des Memofelds in einer normalen Listbox anzeigen. Wie geht das?
Bei einem Editfeld geht es ja z.B. so :
ausblenden Quelltext
1:
edit1.text:=table1.fieldbyname('Beispiel').asstring;					
wwerner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 185



BeitragVerfasst: Mo 15.07.02 13:59 
ausblenden Quelltext
1:
listbox.items := table1.fieldbyname('Beispiel').asstring;					
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Mo 15.07.02 14:04 
Das geht nicht man kann nicht einen Stringwert einer Stringliste zuweisen, so habs ichs ja schon probiert!
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 15.07.02 14:05 
Das wird wohl nicht funktionieren: Items ist vom Type TStrings!

So sollte es funktionieren:
ListBox1.Items.Text := Table1.FieldByName ('Beispiel').AsString;(nicht getestet :-))

Gruß
wwerner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 185



BeitragVerfasst: Mo 15.07.02 14:08 
He Tino du wars schneller