Autor Beitrag
p4nsen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Fr 16.01.04 11:21 
kurz und knapp wie filter ich meine gesammte DB das nur die felder angezeigt/verwendet werden die nicht leer sind Tabel1.isempty ??
kA thx 4 hlp
KidPaddle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 351

WinXP,Linux
D7 Prof, XE7
BeitragVerfasst: Fr 16.01.04 11:29 
kurz und knapp, was willst Du genau

ausblenden Delphi-Quelltext
1:
Table1.Filter := 'Feld is not null'					


oder was genau?

Gruß
KidPaddle

Moderiert von user profile iconKlabautermann: Delphi-Tags hinzugefügt.
p4nsen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Fr 16.01.04 11:44 
jop genau so
also es is folgendes, ich hab ein StringGrid und will das mit den Werten der DB füllen... allerdings bringter mir immer ne exeption wegen ungültiger variant typumwandlung

ausblenden Delphi-Quelltext
1:
2:
3:
for i := 1 to StringGrid1.ColCount - 2 do begin
 StringGrid1.Cells[i + 1, StringGrid1.Selection.Bottom] := Tb[Titel[i]];
end;

in dem string-array Titel sind Spaltennamen
er sucht halt nach den spaltennamen und weisst dann die gefundenen werte der Tabelle zu, wenn allerdings in der DB nix steht hat er probleme, daher das filtern :roll: :roll:

Moderiert von user profile iconKlabautermann: Code durch Delphi-Tags ersetzt.
p4nsen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Fr 16.01.04 16:31 
is ok habs selber noch hinbekomm

-----Closed-----
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Fr 16.01.04 17:15 
p4nsen hat folgendes geschrieben:
is ok habs selber noch hinbekomm

Dann sag doch auch noch wie, dann hat jeder was davon ;-)
p4nsen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mo 19.01.04 08:15 
hab einfach noch ne prüfung vorrangestellt :roll:

ausblenden Delphi-Quelltext
1:
 if not Tb.FieldByName(Titel[i]).IsNull then					


ich machs halt so, das er die Felder nur übernimmt wenn sie <> 0 sind