Autor Beitrag
Scrutor
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Fr 06.07.07 11:52 
cu


Zuletzt bearbeitet von Scrutor am Fr 06.07.07 12:41, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 06.07.07 12:15 
Moin und :welcome: im Forum!

user profile iconScrutor hat folgendes geschrieben:
ich arbeite gerade an einem Programm und bin nun an einer Stelle, wo ich nicht mehr weiter weiss.
Ich hoffe, dass mir hier einer bei dem Problem helfen kann.
[...]

Nur irgendwie will mir das nicht gelingen.

:gruebel: Ähm, was genau gelingt dir denn nun nicht? :nixweiss: Du hast ja gar keine (beantwortbare) Frage gestellt... :?

user profile iconScrutor hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
type 
  TDataArray = array[0..5] of pointer; //???

Was wird das denn? :?!?:

user profile iconScrutor hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure Load_Data(Fread:string);
//...
  CreateDate:=StrToDate(FormatDateTime('dd.mm.yy',GetFileModifyDate(Fread))); 
  if CreateDate<StrTodate('22.01.04') then Format:=1; 
//...

Also diese Funktion kennt mein Delphi und die Win32-Hilfe nicht... :les: :?
Weiterhin: wenn es sie gäbe, wer sagt denn, dass das Ergebnis vom Typ TDateTime ist? :shock: Wenn´s ne API-Funktion ist, dürfte das ein anderes Format sein.
Und noch was: du kannst ein Datum nicht als String in Relation setzen, das kann (in der Standardnotation) nicht klappen. Direkt TDateTime-Werte vergleichen! :idea:

user profile iconScrutor hat folgendes geschrieben:
hat da einer eine Idee, wie ich das Problem gelöst bekomme ?

Wenn du mal erklärst, was eigentlich dein Problem ist, gerne. :mahn: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.


Zuletzt bearbeitet von Narses am Fr 06.07.07 12:33, insgesamt 1-mal bearbeitet
Scrutor Threadstarter
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Fr 06.07.07 12:32 
hat sich erledigt


Zuletzt bearbeitet von Scrutor am Fr 06.07.07 12:42, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 06.07.07 12:38 
Moin!

user profile iconScrutor hat folgendes geschrieben:
DAS ist nur Theorie also bitte nicht gleich wieder anfangen mit: "Wo wird denn Format initialisiert ?"

OK, dann auch gerne theoretische Antworten... :P :roll:

Mit records geht das nicht (naja, nur sehr umständlich), mach Klassen daraus. ;)


cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.


Zuletzt bearbeitet von Narses am Fr 06.07.07 12:40, insgesamt 1-mal bearbeitet
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Fr 06.07.07 12:40 
Mit Records geht das AFAIK nicht, nur mit Klassen mittels Polymorphie, da wird das aber mit der typisierten Textdatei schwierig.

Ich denke an der Stelle wird dir nicht viel andres bleiben, als für jeden Record eine eigene Variable zu bauen und bei jedem Zugriff die Case-Auswertung zu benutzen.

_________________
Bravery calls my name in the sound of the wind in the night...
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Fr 06.07.07 12:43 
Wie sieht dein Kenntnisstand von Klassen aus?
Darüber wäre Dein Problem bestimmt lösbar!

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 06.07.07 12:45 
Moin!

user profile iconnoidic hat folgendes geschrieben:
Mit Records geht das AFAIK nicht, nur mit Klassen mittels Polymorphie, da wird das aber mit der typisierten Textdatei schwierig.

Man könnte das record für den Filezugriff ja vielleicht auch in der (Unter-)Klasse festlegen. :idea:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Fr 06.07.07 12:47 
Hm, da haste wahr, damit könnts gehen.

_________________
Bravery calls my name in the sound of the wind in the night...
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 06.07.07 12:48 
user profile iconScrutor hat folgendes geschrieben:
hat sich erledigt

Sorry, aber du hast ne Meise... :nixweiss: :lol:

_________________
There are 10 types of people - those who understand binary and those who don´t.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 06.07.07 12:50 
Da das Problem sich scheinbar auf die eine oder andere Art erledigt hat, mach ich hier dicht.

_________________
We are, we were and will not be.
Dieses Thema ist gesperrt, Du kannst keine Beiträge editieren oder beantworten.

Das Thema wurde von einem Team-Mitglied geschlossen. Wenn du mit der Schließung des Themas nicht einverstanden bist, kontaktiere bitte das Team.