Autor Beitrag
Passi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 12.01.04 17:29 
hallo,

in einem dbgrid werden bei mir alle datensätze gezeigt. jetzt will ich aber nicht alle gezeigt bekommen sondern nur bestimmte. z.b. wenn in dem tabellenfeld 'Name' der eintrag 'Hallo' steht, dann sollen alle datensätze gezeigt werden wo als Name, Hallo eingegeben wurde. wie ist das möglich?

benutze eine paradox db

Moderiert von user profile iconTino: Titel geändert.
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: Mo 12.01.04 17:41 
Du musst einen Filter setzen. Sie Dir mal die Eigenschaft Filter bzw. Filtered der TTable an...
Passi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 12.01.04 18:09 
hm ja soweit war ich eigentlich auch schon :)
bis jetzt siehts dann so aus:
ausblenden Delphi-Quelltext
1:
2:
table1.filtered :=  true;
table1.filter := [...];

was mach ich denn dann anstatt den [...] rein, ich weiß da nicht so recht weiter
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: Mo 12.01.04 18:50 
Anders rum :P

ausblenden Delphi-Quelltext
1:
2:
3:
table1.filtered :=  False; 
table1.filter := 'Name = '+QuotedStr('Hallo'); 
table1.filtered :=  true;
[/delphi]
Passi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 12.01.04 19:03 
ach so geht das :) danke dir!!