Autor Beitrag
recall
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Fr 22.08.03 23:26 
Hallo,

Ich versuche mit dem Befehl GetFieldNames die Feldname auszulesen.
Das klappt ja wunderbar, nur: Die Feldname sind alphabetisch sortiert, und nicht etwa in ihrer original-Reihenfolge !?

Beispiel: Bei mir ist eine Tabelle ID NAME VORNAME EMAIL ...
Er sagt mir daher: GetFieldNames => EMAIL, ID, NAME, VORNAME, ...

Wie kann ich die Feldname in ursprünglicher Reihenfolge erhalten ?

Vielen Dank im voraus ;) .

Viele Grüsse.


Zuletzt bearbeitet von recall am Do 28.08.03 07:55, insgesamt 1-mal bearbeitet
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Sa 23.08.03 00:01 
Titel: hmm,
was ist eigentlich dein Problem dabei ? Du nutzt eine ralationale DB, da ist alles genau so sortiert wie es zugriffstechnisch am schnellsten ist.

Les halt nur das aus was du lesen wilslst dann hast du dein Problem erst garnicht !?

_________________
mfg. Joel
recall Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Sa 23.08.03 08:34 
Ich lese doch genau das aus, was ich haben will: NÄMLICH DIE FELDNAMEN. Nur hätte ich die gerne in der richtigen Reihenfolge ;) .

Oder versteh' ich dich komplett falsch ?

Viele Grüsse.
recall Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Do 28.08.03 07:56 
Hmmm... weiss dazu keiner was ?
Wäre schön, wenn mir jemand weiterhelfen könnte.
Ich bin mit meinem Latein am Ende :( .

Viele Grüsse.
MKehrer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114

NT, 2000
D6
BeitragVerfasst: Do 28.08.03 12:22 
Hi Recall,

bau Dir halt selber die Function GetMyFieldNames(stl:TStrings)

stl.Clear
von 0 bis Fieldcount-1 stl.Add(Fields[i].Fieldname);

Die property-Namen stimmen wahrscheinlich nicht genau , aber so muss es doch gehen, oder?

_________________
Manfred
Was Du siehst ist in Dir (Smile)
recall Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Do 28.08.03 20:28 
thx => :oops: :oops: :oops: :oops: :oops: :oops: ... !!! :!:
bin ich nicht draufgekommen, werdes aber ausprobieren :)

Danke.

Viele Grüsse.