Autor Beitrag
dm
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83



BeitragVerfasst: Do 05.06.03 13:24 
Hallo,

ich möchte gerne ein ADOTABLE vor der ausgabe sortieren (spalte "typ").

Mitm Adoquery ists ja dank SQL kein Problem aber wie bekomme ich ein adotable sortiert ?

Jemand ne idee ?


Gruß Dennis
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Do 05.06.03 13:53 
hallo dennis!

hast schon mal versucht, in deinem table einen index auf das feld anzulegen, das du sortiert anzeigen willst?
das funktioniert bestimmt auch bei einem ado-table! ;)

mfg, stefan
dm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83



BeitragVerfasst: Do 05.06.03 14:30 
Titel: ja
ja das habe ich schon eingerichtet, trotzdem sortiert er nicht.

deswegen dachte ich es gibt irgendwie adotable1.sort['feldname'] oder sowas ?
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Do 05.06.03 19:18 
hallo dm!

ist dein index auch aktiv?
schau mal im OI des tables, ob du unter Indexname etwas auswählen kannst. dann sollte er eigentlich sortieren
falls das nützt, dann beschreib mal genau, was du alles gemacht hast ...

obs ein ADOTable.Sort gibt, findest ganz leicht heraus, indem du die methoden des ADOTables studierst ;) ich glaub fast nicht.

mfg, stefan