Autor Beitrag
Stoffel1984
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Fr 31.10.03 09:49 
Hallo,

normale Daten aus Characterfeldern in Tabellen lese ich mit

ausblenden Delphi-Quelltext
1:
sId := AdsTable1.FieldByName('Id').AsString;					


aus. Wie mache ich das mit Memo Feldern der Tabelle. So wie oben ging es nicht.

Danke schonmal,

Stoffel
Maggi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP, WIN 2003
D5 Enter D 2006
BeitragVerfasst: Fr 31.10.03 10:15 
Hi,

das geht auch mit Memos genau so:

Memo1.Text := tbl1.FieldbyName('FELD01').AsString;

... das geht bei mir gestestet und für gut befunden :wink:

Gruß

Maggi

_________________
"Wir haben den Kontakt zur Realität verloren, aber die findet uns schon wieder"
Stoffel1984 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Fr 31.10.03 10:41 
Geht bei mir definitiv nicht. Hast ne Ahnung an was das liegen könnte?
Er weist Memo1.Text überhaubt keinen Wert zu.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
if AdsTable1.FieldByName('Id').AsString = Id then
begin
  Edit1.Color := clgreen;
  Memo1.Text := AdsTable1.FieldByName('Hint').AsString;
end else
begin
  AdsTable1.First;
  edit1.Color := clred;
end;


Gruß,

Stoffel
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Fr 31.10.03 10:51 
Was für eine Datenbank nutzt Du denn?

Und welcher Fehler tritt auf?

Probiers mal mit

Memo1.Lines.Add(Table1.FieldByName('feld').AsString);

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
Stoffel1984 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Fr 31.10.03 10:55 
Hallo,

ich benutze AdsTables. Es liegt glaube ich nicht am Memo. Das Zuweisen des Feldes einer Stringvariable ging auch nicht. Wenn ich degugge zieht er mir gar nichts aus der Table.
Maggi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP, WIN 2003
D5 Enter D 2006
BeitragVerfasst: Fr 31.10.03 10:57 
Hi,

ausblenden Delphi-Quelltext
1:
  Memo1.Text := AdsTable1.FieldByName('Hint').AsString;					


Stell dann doch ersteinmal fest ob in den Memos überhaupt was dir steht,.... das muß so gehen!! 8)

Gruß

Maggi

_________________
"Wir haben den Kontakt zur Realität verloren, aber die findet uns schon wieder"
Stoffel1984 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Fr 31.10.03 10:59 
Oh es klappt...
hatte nen kleinen Fehler in ner anderen Routine!

Danke für eure Bemühungen!

Stoffel