Autor Beitrag
Master_BB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Fr 02.05.03 19:13 
hallo,
ich schreibe gerade ein programm wo ein datensatz (record) in eine typisierte datei gespeichert wird. Nun meine frage wie kann ich die gespeicherten datensätze zählen lassen?

Greetz
Master_BB


Moderiert von user profile icontommie-lie: Topic verschoben
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Fr 02.05.03 19:19 
Das machst du mit FileSize.

_________________
If accidentally read, induce vomitting.
Master_BB Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Fr 02.05.03 19:26 
ah läuft danke
kiwicht
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: Sa 03.05.03 00:01 
halt, moment, erklär mal bitte genau:

mit FileSize krieg ich die Anzahl der Datensätze rau? Versteh ich nich ganz!
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 03.05.03 00:10 
ja und?
Zitat:
Nun meine frage wie kann ich die gespeicherten datensätze zählen lassen?

Ist doch genau das, was er haben wollte ;-)

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
kiwicht
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: Sa 03.05.03 00:17 
hm, ich versteh grad nicht den Zusammenhang zwischen:

Anzahl der in einer Datei gespeicherten Datensätze und FileSize, also DateiGröße!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 03.05.03 05:30 
Er muß noch die Dateigröße durch die Größe des Records teilen, dann sollte es hinhauen.
Master_BB Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 03.05.03 10:44 
also es klappt wenn ich nur filesize nehme.
wenn das programm dann in 1nem monat fertig is stell ichs mal online zum betrachten ist eine sehr schöne personal- und lagerverwaltungssoftware
--> dauert solange weil ich nicht alles alleine mache und der andere ein wenig brauch
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 03.05.03 13:06 
Master_BB hat folgendes geschrieben:
also es klappt wenn ich nur filesize nehme.

Das kann nicht sein. Oder du benutzt ein anderes FileSize als wo von ich / wir reden.
Master_BB Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 03.05.03 14:06 
also ich hab das hier im code
und er gibt bei 2 datensätzen eine 2 aus
datensatz ist
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
type
   ds = packed record
   name:string[30];
   adresse:string[40];
   geschlecht:byte;
   telefonnr:string[15];
   email:string[25];
   bemerkungen:string[255];
   status:byte;
   geb:tDateTime;
   position:string[30];
end;


dg := filesize(pf);
label10.caption := IntToStr(dg);


Moderiert von user profile iconUGrohne: Code-Tags eingefügt
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 03.05.03 14:18 
OK, damit wäre alles geklärt:
Zitat:

Call FileSize to determine the size of the file specified by the file variable F. The size is expressed as the number of records in a record file.