Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi FileSize arbeitet ungenau oder ? (https://www.delphipraxis.net/8920-filesize-arbeitet-ungenau-oder.html)

Chewie 15. Sep 2003 14:58

Re: FileSize arbeitet ungenau oder ?
 
Zitat:

Zitat von Rapthor
Und wie kann ich die Property SIZE aufrufen und den Wert in eine Variable speichern ?

:shock:
So:
Delphi-Quellcode:
const
  MyFile = 'c:\test.txt';
var
  fs: TFileStream;
  size: Cardinal;
begin
  fs := TFileStream.Create(MyFile, fmOpenRead or fmShareDenyWrite);
  try
    size := fs.Size;
  finally
    fs.Free;
  end;
end;

LoL 15. Sep 2003 14:59

Re: FileSize arbeitet ungenau oder ?
 
hi

hmm..., tut mir leid weis ich auch nicht. im übrigen find ich diese property auch nicht! frag ma christian seehase
ich wollt dir blos sagen wie du den filestream erstellst!

gruß christoph

Rapthor 15. Sep 2003 15:05

Re: FileSize arbeitet ungenau oder ?
 
Danke hat schon alles geklappt... tschuldigung dass ich nicht mal weiß wie man Properties richtig einsetzt :oops:


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:08 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz