Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Fr 20.08.04 18:54 
Hallo, User,

wahrscheinlich eine "dumme" Frage, aber bei Indices habe ich zur Zeit noch einen blinden Fleck. Kann ich Indices in der Art für eine Tabelle vergeben, dass sie analog BDE nach
+Titel, -Klasse, +Name, +Vorname sortiert ist (+=aufsteigend, -=absteigend)

Vielen Dank für eure Hilfe!
Grüße, Detlef Annies
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Fr 20.08.04 23:10 
hallo detlef!

sieh dir in der delphi-hilfe die beschreibung zu TIndexOptions an.
dort findest du den parameter ixDescending (der defaultwert ist ixAscending)

bitte, bitte. nichts zu danken! ;)

mfg, stefan
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Sa 21.08.04 00:03 
Hi, Grayfox,

ja, so trifft man sich wieder ... :lol:

Werde deine Tipps allerdings erst morgen äh, heute ausprobieren, guck mal auf die Uhrzeit, gähn! :roll:

Melde mich dann wieder,

Detlef
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Sa 21.08.04 07:57 
HI und guten Morgen!

So, jetzt habe ich den folgenden Code:
ausblenden Delphi-Quelltext
1:
2:
3:
           table1.tablename := 'schulev4.dbf';
           table1.addindex('schulev4', 'Klasse;Name;Vorname', [ixCasesensitive]);
           table1.active := true;

und ich bekomme die Fehlermeldung (nachdem irgendwie schon ein Index angelegt wurde)
Zitat:
Ungültiger Index-Descriptor

So, what to do?? :evil:

Grüße, Detlef Annies

Moderiert von user profile iconTino: Delphi- und Quote-Tags hinzugefügt.
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Sa 21.08.04 16:57 
hallo Detlef!

die fehlermeldung stammt daher, da es 'ixCaseInsensitive' heissen muss.
in der delphi-hilfe - [AddIndex] sind alle parameter beschrieben, die du übergeben darfst.

man liest sich ;)

mfg, stefan
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Sa 21.08.04 21:53 
Hi, Grayfox,

so was dummes ist mir schon lange nicht passiert! Falsch gelesen!

Danke erstmal, Detlef