Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Rapthor,
15. Sep 2003
Danke hat schon alles geklappt... tschuldigung dass ich nicht mal weiß wie man Properties richtig einsetzt :oops:
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Rapthor,
15. Sep 2003
Und wie kann ich die Property SIZE aufrufen und den Wert in eine Variable speichern ?
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Rapthor,
15. Sep 2003
Und wie sieht das jetzt konkret im Quelltext aus?
TFileStream('Aktuell.ini'); ??
Oder wie?
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Rapthor,
15. Sep 2003
aktuellS ist vom Typ TextFile und ist unter var deklariert !
Im Prinzip will ich einfach nur prüfen, ob in der Datei irgendetwas drin steht. Und wenn nicht, dann soll sie gelöscht werden.
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Rapthor,
15. Sep 2003
Hallo,
hab ne IF Anweisung, die eine bestimmte Datei löschen soll, wenn sie leer ist (also 0 Bytes). Wenn ich allerdings folgendes aufrufe, löscht er mir in jedem Falle die Datei, egal ob da ein paar Zeichen drin stehen oder nicht:
Assign(aktuellS, 'Aktuell.ini');
Reset(aktuellS);
if FileSize(aktuellS) = 0 then
begin
CloseFile(aktuellS);
...