Home
Facebook
Twitter
Google+
RSS Feeds
Sebatas Catatan
≡
Navigation
Home
Tentang Blog
Daftar Isi
Home
»
Delphi
»
Open Source
»
Pemrograman
»
Tips n Tricks
»
Cek Ukuran File Delphi
Cek Ukuran File Delphi
Posted by
Ghozali Muslim
Program sederhana dari delphi untuk mengecek ukuran file.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons;
type
TForm1 = class(TForm)
OD: TOpenDialog;
BitBtn1: TBitBtn;
Label1: TLabel;
Edit1: TEdit;
Label2: TLabel;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
nilai,hasil: Double;
implementation
{$R *.dfm}
function GetSize(const AFile:String):Int64;
begin
Result := 0;
with TFileStream.Create(AFile, fmOpenRead) do
begin
try
Result := Size;
finally
Free;
end;
end;
end;
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
if OD.Execute then Edit1.Text := IntToStr(GetSize(OD.FileName));
end;
end.
Hasil screenshot :
Program dan Source Code dapat didownload
DISINI
Tweet
Please FOLLOW and JOIN to get update!
Cool Social Media Sharing Touch Me Widget by
Blogger Widgets
Blog,
Updated at:
10:43 AM
0 comments:
Post a Comment
Newer Post
Older Post
Home
Popular Posts
Menampilkan Bilangan Genap Ganjil dan Prima dengan Delphi
Konversi Text ke ASCII, HEXA, BINER, OCTAL
Menggunakan Fast Report Secara Runtime
Koneksi Database Interbase / Firebird dengan Delphi 7
Membuat Tabel Pada Interbase / Firebird via IBExpert
Categories
Database
Delphi
Firebird
IBExpert
Interbase
Jaringan
Lazarus
MySQL
Network
Open Source
Pemrograman
RDBMS
Tips n Tricks
Archives
►
2014
(4)
►
June
(1)
►
March
(1)
►
February
(1)
►
January
(1)
▼
2013
(32)
►
December
(1)
►
November
(1)
►
October
(1)
►
September
(2)
►
August
(2)
►
July
(5)
▼
June
(2)
Simpan dan Load File dari Database Delphi
Cek Ukuran File Delphi
►
May
(2)
►
April
(4)
►
March
(8)
►
February
(1)
►
January
(3)
►
2012
(11)
►
December
(11)
0 comments:
Post a Comment