Autor Beitrag
xel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Sa 24.08.02 19:39 
Hi all, also ich will den Datenbank index Nummer in einem Label ausgeben, d.h. die Index Nummer die jede datenbank Tabelle hat... die ganz Links... die man nicht selbst erstellen kann sondern die in jeder Tabelle vorhanden ist.

Wie mache ich das???

Danke..
Xel
Steffer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 299



BeitragVerfasst: Sa 24.08.02 19:50 
>d.h. die Index Nummer die jede datenbank Tabelle hat...
Nicht jede DB hat einen Index

>die man nicht selbst erstellen kann sondern die in jeder Tabelle
>vorhanden ist.
Wie gesagt ...

>Wie mache ich das???
Bitte erkläre mir das nochmal

_________________
Keine Signatur ...
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: So 25.08.02 14:50 
Titel: also nochmal....
ich habe sagen wir mal eine Tabelle... da ist nur ein Datensatz... sagen wir Name & Adresse (Sting/Alpah)...

So sieht ungefähr in der Datenbankoberflache aus:

Tabellen Name | Name | Adresse |
-------------------------------------------------
. . . . . 1 . . . . . . .| Müller | Milchalle |
. . . . . 2 . . . . . . .| Hans | Hanseweg |


/\
|
Ich will diese Nummern ermitteln!?


Das soll ürigens als "Progressbar1.Max & Progressbar.Position" eingerichtet werden es soll mir anzeigen wieviele Datensätze ich habe... also wie gross meine Datenbank ist :D. Ich hoffe das ist elegant!?


Danke...
Xel
Steffer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 299



BeitragVerfasst: So 25.08.02 15:14 
Joo, jetzt ist es klar.

Was du willst ist die Datensatznummer, kein Index.
Die bekommst du über TTable.RecNo;

Mit der PGB(Progressbar):
begin
PGB.Max:= Table.RecordCount;
PGB.Position:= 0;
Table.First;
while not Table.EOF do
begin
PGB.Position:= PGB.Position + 1;
Table.Next;
end;

Dazu brauchst du es noch nicht einmal :wink:

_________________
Keine Signatur ...
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: So 25.08.02 22:11 
Titel: Super hat gefunktioniert :-P ... Danke
Danke :D