Autor Beitrag
bobi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Windoof XP Pro.
Delphi 2006 .NET
BeitragVerfasst: Fr 29.06.07 08:34 
Hi, wie kann ich hier eine Abfrage gestallten damit der den Inhalt aus der Tabelle nur dann macht wenn auch was drin steht?

ausblenden Delphi-Quelltext
1:
TextBox1.Text := dt.Rows[0]['Systemname'] as String;					




Ich hatte da an sowas gedacht: (was aber nicht geht)

ausblenden Delphi-Quelltext
1:
2:
3:
 If dt.Rows[0][''] > '' then begin
   TextBox1.Text := dt.Rows[0]['Systemname'] as String;
 end;



hat da einer ne Idee?


MFG: bobi

_________________
Alles wird gut!
zongo-joe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 134

win xp prof
D3, D4, D7
BeitragVerfasst: Fr 29.06.07 09:07 
Du kannst die Inhalte von einzelnen Zellen der Tabelle mit CELLS abfragen

zB:
ausblenden Delphi-Quelltext
1:
if DeineTabelle.cells[2,3] <>'' then begin...     // Index beginnt bei 0 !					


abfragen
bobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Windoof XP Pro.
Delphi 2006 .NET
BeitragVerfasst: Fr 29.06.07 09:35 
Cells gibt es bei mir nicht, ich arbeite mit .Net und da scheint es die Anweisung cells nicht zu geben.


Rows mach im grunde das gleiche, aber ich weiss nicht wie ich es damit am besten abfragen kann.




MFG: bobi

_________________
Alles wird gut!