If you want to delete folder with delphi you can use this code below

Popularity: 10% [?]

Bagi pengguna Report Builder yang ingin melakukan save file print menjadi format xls, kudu menggunakan komponen TExtradevice.

Popularity: 8% [?]

Untuk meload nilai file widestring (Unicode) agar bisa dikenali secara string, kita bisa menambahkan  procedure sebagai berikut ini :

Popularity: 7% [?]

Akhirnya berhasil juga nginstall komponen TXiButton yang didapet dari situs om Joko Rivai. Awalnya memang ane mendapat sedikit kesulitan. Coz pada Delphi 2007 agak berbeda cara penginstallan dibandingkan dengan Delphi 5 atau Delphi 7 yang sebelumnya pernah ane coba. Yup, sambil mencoba dan tanya sama om google akhirnya ketemu situs yang menerangkan cara menginstall komponen.

Berikut langkah2 instalasi yang ane lakukan :

Popularity: 12% [?]

Untuk mendapatkan nilai yang ada pada filelistbox agar menjadi string bisa menggunakan metode berikut ini.

Popularity: 5% [?]

Here is source code Delphi for shutdown / Reboot Windows

Popularity: 2% [?]

Here is Source code Shutdown Windows with Delphi.
Example to reboot Windows:

Popularity: 2% [?]

Here is source code for TimeShutDown Delphi

Popularity: 3% [?]

[code lang="pascal"]
procedure TForm1.Button1Click(Sender: TObject);
var
b1, b2: TBitmap;
c1, c2: PByte;
x, y, i,
different: Integer; // Counter for different pixels
begin
b1 := Image1.Picture.Bitmap;
b2 := Image2.Picture.Bitmap;
Assert(b1.PixelFormat = b2.PixelFormat); // they have to be equal
different := 0;
for y := 0 to b1.Height - 1 do
begin
c1 := b1.Scanline[y];
c2 := b2.Scanline[y];
for x := 0 to b1.Width - 1 do
for i := 0 to BytesPerPixel - 1 do // 1, to 4, dep. on pixelformat
begin
Inc(different, Integer(c1^ <> c2^));
Inc(c1);
Inc(c2);
end;
end;
end;
[/code]

Popularity: 5% [?]

procedure Rename ( var FileHandle; NewFileName : string | PChar ) ;

Description
The Rename procedure renames a file given by FileHandle to a new name NewFileName.
The file must have been assigned the given FileHandle using the AssignFile routine.

Popularity: 5% [?]

Next Page »