<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5385427364087848770</id><updated>2025-06-09T07:07:24.333+07:00</updated><category term="Tips n Tricks"/><category term="Delphi"/><category term="Open Source"/><category term="Pemrograman"/><category term="Database"/><category term="Interbase"/><category term="Firebird"/><category term="RDBMS"/><category term="IBExpert"/><category term="Jaringan"/><category term="Network"/><category term="Lazarus"/><category term="MySQL"/><title type='text'>Sebatas Catatan</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default?start-index=26&amp;max-results=25'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>47</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-7385076032015241121</id><published>2014-06-12T10:14:00.000+07:00</published><updated>2017-04-21T08:36:02.074+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Regular Expression (RegEx) dengan Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Udah lama gak posting... biar gak lupa ane simpen diblog aja.. :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Berikut ini contoh aplikasi sederhana penggunaan Regular Expression dengan Delphi untuk mengecek validasi alamat email yang ditulis. Pada contoh aplikasi juga ane kasih fungsi untuk mengecek validasi nomor telepon yang ditulis. Oke langsung saja...&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;pre class=&quot;brush:html&quot;&gt;unit Unit1;

interface

uses
&amp;nbsp; Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
&amp;nbsp; Dialogs, StdCtrls;

type
&amp;nbsp; TForm1 = class(TForm)
&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit1: TEdit;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Label1: TLabel;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Button1: TButton;
&amp;nbsp;&amp;nbsp;&amp;nbsp; procedure Button1Click(Sender: TObject);
&amp;nbsp; private
&amp;nbsp;&amp;nbsp;&amp;nbsp; { Private declarations }
&amp;nbsp; public
&amp;nbsp;&amp;nbsp;&amp;nbsp; { Public declarations }
&amp;nbsp; end;

var
&amp;nbsp; Form1: TForm1;

implementation

uses RegExpr;

{$R *.dfm}

function IsAnEmail(Addr:String):Boolean;
begin
&amp;nbsp; with TRegExpr.Create do
&amp;nbsp; begin
&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression := &#39;^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]+)$&#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Result := Exec(Addr);
&amp;nbsp;&amp;nbsp;&amp;nbsp; Free;
&amp;nbsp; end;
end;

{
function IsAnPhoneNumber(PhoneNumber:String):Boolean;
begin
&amp;nbsp; with TRegExpr.Create do
&amp;nbsp; begin
&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression := &#39;([+][0-9]|[0][0-9])&#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Result := Exec(PhoneNumber);
&amp;nbsp;&amp;nbsp;&amp;nbsp; Free;
&amp;nbsp; end;
end;
}

procedure TForm1.Button1Click(Sender: TObject);
begin
&amp;nbsp; 
&amp;nbsp; if IsAnEmail(Edit1.Text) then
&amp;nbsp; ShowMessage(&#39;Email OK&#39;)
&amp;nbsp; else
&amp;nbsp; ShowMessage(&#39;Invalid email address&#39;);

&amp;nbsp; {
&amp;nbsp; if IsAnPhoneNumber(Edit1.Text) then
&amp;nbsp; ShowMessage(&#39;Phone Number OK&#39;)
&amp;nbsp; else
&amp;nbsp; ShowMessage(&#39;Invalid phone number&#39;);
&amp;nbsp; }
end;

end.
&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Screenshot&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5Klo5F7CxzmjxuMU1z55QP22x6aakDaNq-eu6SWMShV0RfW87hiOIkyZZdyB590ytK4TMfLn9l4T_OpwN0zQg4pnPDcwBg3SQ5W8An5RsDJ1y6Z4JPoLMaQbPDOQC_6a2Zex-3O7cX2zk/s1600/regex.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;115&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5Klo5F7CxzmjxuMU1z55QP22x6aakDaNq-eu6SWMShV0RfW87hiOIkyZZdyB590ytK4TMfLn9l4T_OpwN0zQg4pnPDcwBg3SQ5W8An5RsDJ1y6Z4JPoLMaQbPDOQC_6a2Zex-3O7cX2zk/s1600/regex.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Download &lt;a href=&quot;http://adf.ly/pVJcO&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;FULL SOURCE DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Untuk referensi pembelajaran / cara penggunaan regular expression bisa kunjungi website berikut&lt;a href=&quot;http://regexpstudio.com/&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt; http://regexpstudio.com/&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/7385076032015241121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2014/06/regular-expression-regex-dengan-delphi.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/7385076032015241121'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/7385076032015241121'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2014/06/regular-expression-regex-dengan-delphi.html' title='Regular Expression (RegEx) dengan Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5Klo5F7CxzmjxuMU1z55QP22x6aakDaNq-eu6SWMShV0RfW87hiOIkyZZdyB590ytK4TMfLn9l4T_OpwN0zQg4pnPDcwBg3SQ5W8An5RsDJ1y6Z4JPoLMaQbPDOQC_6a2Zex-3O7cX2zk/s72-c/regex.JPG" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-6358839800671893439</id><published>2014-03-06T10:08:00.000+07:00</published><updated>2014-03-06T10:09:09.825+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Lazarus"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Instal Komponen Zeos pada Lazarus Windows</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Mencoba iseng maen lazarus pada OS Windows teringat salah satu komponen koneksi/akses database yaitu ZEOS dan langsung ane praktekan cara instalnya di lazarus sekaligus ane buat postingan biar gak lupa caranya.. Hehehe... :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Oke langsung saja...&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1. Pastikan punya lazarus yang sudah terinstal dan komponen zeos nya dulu...&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
lazarus bisa didownload di &lt;a href=&quot;http://sourceforge.net/projects/lazarus/&quot;&gt;http://sourceforge.net/projects/lazarus/&lt;/a&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
zeos component bisa didownload di &lt;a href=&quot;http://sourceforge.net/projects/zeoslib/&quot;&gt;http://sourceforge.net/projects/zeoslib/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2. Extrak file download komponen ZEOS tersebut.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDslfW_76KEO_QKmzUlTPOjILUVMIo72FC8h3aYnpf4knwt46H2pCwRA7dIc4GHgLKduIOTW06XMuDalZ7Xjp_V7IV7ohwc8HHonkHkPuMZnJt-IsG5eSr5HHM6UFSIGqO0oxf_wn8UGwZ/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDslfW_76KEO_QKmzUlTPOjILUVMIo72FC8h3aYnpf4knwt46H2pCwRA7dIc4GHgLKduIOTW06XMuDalZ7Xjp_V7IV7ohwc8HHonkHkPuMZnJt-IsG5eSr5HHM6UFSIGqO0oxf_wn8UGwZ/s1600/1.JPG&quot; height=&quot;400&quot; width=&quot;370&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;3. Pada folder ..\ZEOSDBO-7.1.3a-stable\packages&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; copas satu folder &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;lazarus&lt;/b&gt;&lt;/span&gt; ke C:\lazarus\components&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ( punya ane folder &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;lazarus&lt;/b&gt;&lt;/span&gt; tak rename jadi &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;ZEOSDBO-7.1.3a-stable&lt;/span&gt;&lt;/b&gt; )&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj05-pDR6vG-Xyshm2VYXnpLsXY7xVzdtwHiCyYqDxTQRDhd2vQh7ndKwpUGG4Zhx2P2RPVE0pPb_3pWRl7rWmsafNHpmjzhdBRVPE1yRXGGdhi1Jf43xhlpMHLI_RhYB0cJ5sL54rCc4P_/s1600/2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj05-pDR6vG-Xyshm2VYXnpLsXY7xVzdtwHiCyYqDxTQRDhd2vQh7ndKwpUGG4Zhx2P2RPVE0pPb_3pWRl7rWmsafNHpmjzhdBRVPE1yRXGGdhi1Jf43xhlpMHLI_RhYB0cJ5sL54rCc4P_/s1600/2.JPG&quot; height=&quot;311&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4. Pada folder ..\ZEOSDBO-7.1.3a-stable&amp;nbsp; copas satu folder &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;/b&gt; ke C:\lazarus&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdINCGsCb3bMD6nxbsibo0vcnNE-swf2NTdHip72gWr2Z612PsKjnL2SjIHbRqH6tNKZWTyHjy0i8sAMGhJaPw8wMGmGYjTp3wf5XoFbni3UQmk8yiUWXfdQT35xtBlkdWN0fm16hKOggS/s1600/3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdINCGsCb3bMD6nxbsibo0vcnNE-swf2NTdHip72gWr2Z612PsKjnL2SjIHbRqH6tNKZWTyHjy0i8sAMGhJaPw8wMGmGYjTp3wf5XoFbni3UQmk8yiUWXfdQT35xtBlkdWN0fm16hKOggS/s1600/3.JPG&quot; height=&quot;378&quot; width=&quot;400&quot; /&gt;&lt;span id=&quot;goog_154000826&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_154000827&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiAomOcWfkJ2eJgfmm5EFjy_M5PdzZ9y16kOXGa853xfyl63jOQdut6S_XhUUtrdsvQ7C-ZD6I2swKFCwF3Y9yx7aGwLrzsQySYlNZ0_MXVvsRwQyLHHq9StrbFi4VfoqqY6a04BGk_KGZ/s1600/4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiAomOcWfkJ2eJgfmm5EFjy_M5PdzZ9y16kOXGa853xfyl63jOQdut6S_XhUUtrdsvQ7C-ZD6I2swKFCwF3Y9yx7aGwLrzsQySYlNZ0_MXVvsRwQyLHHq9StrbFi4VfoqqY6a04BGk_KGZ/s1600/4.JPG&quot; height=&quot;400&quot; width=&quot;373&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
5. Buka lazarus kemudian buka file zcomponent.lpk&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; caranya klik Menu &amp;gt; Package &amp;gt; Open Package File (.lpk)...&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht5lzr6R7LKHfYU6al5rPaLp1oZCaYXKEciUVyygJxc181h8kKa5aoScwHABsMeKvJmswnoMSYwtBZNC-foKRqfYVBbXhNTI2YJZRKcrKTaQuafKO9R9fUi9779FMyPxf4nM4RbYp___Sq/s1600/5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht5lzr6R7LKHfYU6al5rPaLp1oZCaYXKEciUVyygJxc181h8kKa5aoScwHABsMeKvJmswnoMSYwtBZNC-foKRqfYVBbXhNTI2YJZRKcrKTaQuafKO9R9fUi9779FMyPxf4nM4RbYp___Sq/s1600/5.jpg&quot; height=&quot;217&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmwHiePtUwKhMNdQlOcakLDDu_V-XXJAXkq45p4QZbXthQaEXK0Y206aON6U2yFp8awhfvFRblMYFv_taVTisrvVgCenGp3lInHpjA4OroVNvjPtLREIM2gz4G5ERSINnjqUULrdX6Epju/s1600/6.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmwHiePtUwKhMNdQlOcakLDDu_V-XXJAXkq45p4QZbXthQaEXK0Y206aON6U2yFp8awhfvFRblMYFv_taVTisrvVgCenGp3lInHpjA4OroVNvjPtLREIM2gz4G5ERSINnjqUULrdX6Epju/s1600/6.JPG&quot; height=&quot;294&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; muncul dialog seperti gambar di bawah&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM4bIvr7XnpFmR3UKaJvCG97Z28sgimEPn3L2Nz7DGAGfcx_iNvgUaY4I2fN_V3uhS1_bMOwMW1yVm_Q01RrUGbLQb7yQYp3rEulP1-fuBWA_p6XplgoAf-1JsSUbr8wuMklgrulTJJsBX/s1600/7.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM4bIvr7XnpFmR3UKaJvCG97Z28sgimEPn3L2Nz7DGAGfcx_iNvgUaY4I2fN_V3uhS1_bMOwMW1yVm_Q01RrUGbLQb7yQYp3rEulP1-fuBWA_p6XplgoAf-1JsSUbr8wuMklgrulTJJsBX/s1600/7.JPG&quot; height=&quot;400&quot; width=&quot;388&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Klik Complie setelah selesai kemudian klik Use &amp;gt; Install.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Otomatis lazarus akan restart aplikasi jika berhasil..&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKM3KWqnBSxQ2YFRoS6I-Nxhiw4OKybkQJnzHs0vibgO6KoK4vPGo7pbNTKAOuZTjXkXdRjs4dwxhYkJIPkICzMfRjB5bZtIDPtnY6kv3KoWyDIBffz6jTnBd0MLhYG5SywKt2qfaVzQMm/s1600/8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKM3KWqnBSxQ2YFRoS6I-Nxhiw4OKybkQJnzHs0vibgO6KoK4vPGo7pbNTKAOuZTjXkXdRjs4dwxhYkJIPkICzMfRjB5bZtIDPtnY6kv3KoWyDIBffz6jTnBd0MLhYG5SywKt2qfaVzQMm/s1600/8.jpg&quot; height=&quot;282&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
ZEOS komponen sudah terinstal di lazarus windows dan siap dipake...&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip1EkAc2RZcJimZqdAnoyDrCxHaLK4-phBA0PMdxhWfyf42qs9MtUuvoURxBlJBHmG8thEB82udM0hRlBjAsJ7cIwKj22wo5U15Xopxd7fkEGcxJczkjhIJ7aExwJwproyTRVY_LfPmyZw/s1600/9.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip1EkAc2RZcJimZqdAnoyDrCxHaLK4-phBA0PMdxhWfyf42qs9MtUuvoURxBlJBHmG8thEB82udM0hRlBjAsJ7cIwKj22wo5U15Xopxd7fkEGcxJczkjhIJ7aExwJwproyTRVY_LfPmyZw/s1600/9.JPG&quot; height=&quot;58&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Semoga tutorial instal komponen zeos pada lazarus windows bermanfaat.... :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/6358839800671893439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2014/03/instal-komponen-zeos-pada-lazarus.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/6358839800671893439'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/6358839800671893439'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2014/03/instal-komponen-zeos-pada-lazarus.html' title='Instal Komponen Zeos pada Lazarus Windows'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDslfW_76KEO_QKmzUlTPOjILUVMIo72FC8h3aYnpf4knwt46H2pCwRA7dIc4GHgLKduIOTW06XMuDalZ7Xjp_V7IV7ohwc8HHonkHkPuMZnJt-IsG5eSr5HHM6UFSIGqO0oxf_wn8UGwZ/s72-c/1.JPG" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-1868206464701999965</id><published>2014-02-26T13:28:00.000+07:00</published><updated>2017-04-21T08:38:24.627+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Message Dialog Bahasa Indonesia Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Membuat Message Dialog Bahasa Indonesia Delphi&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Berawal dari membuat program dengan bahasa Indonesia, waktu mau buat pesan dialog munculnya bahasa Inggris karena asli bawaannya Delphi. Kan lucu aja gitu semua tampilan pake bahasa Indonesia, dan tiba-tiba muncul pesan dialog konfirmasi pake bahasa Inggris... Hehehe.. :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Caranya cukup mudah sih, kita tinggal buat unit seperti di bawah.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Source code berikut ane kutip dari blognya mas &lt;a href=&quot;http://bprasetio.wordpress.com/2007/10/22/meng-indonesia-kan-messagedlg/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Bayu Prasetio&lt;/span&gt;&lt;/a&gt; dan ane buat unit sendiri.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Karena sering ane pake waktu buat aplikasi yang bahasa Indonesia jadi biar gak lupa ane tulis diblog.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Unit uMessageDlgIndonesia&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;pre class=&quot;brush:html&quot;&gt;unit uMessageDlgIndonesia;

interface

uses
&amp;nbsp; Consts, Windows;

const
&amp;nbsp; _NewSMsgDlgWarning = &#39;Peringatan&#39;;
&amp;nbsp; _NewSMsgDlgError = &#39;Kesalahan&#39;;
&amp;nbsp; _NewSMsgDlgInformation = &#39;Informasi&#39;;
&amp;nbsp; _NewSMsgDlgConfirm = &#39;Konfirmasi&#39;;
&amp;nbsp; _NewSMsgDlgYes = &#39;&amp;amp;Ya&#39;;
&amp;nbsp; _NewSMsgDlgNo = &#39;&amp;amp;Tidak&#39;;
&amp;nbsp; _NewSMsgDlgOK = &#39;OK&#39;;
&amp;nbsp; _NewSMsgDlgCancel = &#39;Batal&#39;;
&amp;nbsp; _NewSMsgDlgHelp = &#39;&amp;amp;Panduan&#39;;
&amp;nbsp; _NewSMsgDlgHelpNone = &#39;Panduan tidak tersedia&#39;;
&amp;nbsp; _NewSMsgDlgHelpHelp = &#39;Panduan&#39;;
&amp;nbsp; _NewSMsgDlgAbort = &#39;&amp;amp;Batal&#39;;
&amp;nbsp; _NewSMsgDlgRetry = &#39;&amp;amp;Ulang&#39;;
&amp;nbsp; _NewSMsgDlgIgnore = &#39;A&amp;amp;cuh&#39;;
&amp;nbsp; _NewSMsgDlgAll = &#39;&amp;amp;Semua&#39;;
&amp;nbsp; _NewSMsgDlgNoToAll = &#39;T&amp;amp;idak untuk Semua&#39;;
&amp;nbsp; _NewSMsgDlgYesToAll = &#39;Ya untuk S&amp;amp;emua&#39;;

implementation

procedure ReplaceResourceString(RStringRec: PResStringRec; AString: PChar);
var
&amp;nbsp; OldProtect: Cardinal;
begin
&amp;nbsp; if RStringRec = nil then Exit;
&amp;nbsp; if VirtualProtect(RStringRec, SizeOf(RStringRec^), PAGE_EXECUTE_READWRITE, OldProtect) then
&amp;nbsp; begin
&amp;nbsp;&amp;nbsp;&amp;nbsp; RStringRec^.Identifier := Integer(AString);
&amp;nbsp;&amp;nbsp;&amp;nbsp; VirtualProtect(RStringRec, SizeOf(RStringRec^), OldProtect, @OldProtect);
&amp;nbsp; end;
end;

initialization
&amp;nbsp; ReplaceResourceString(@SMsgDlgWarning, _NewSMsgDlgWarning);
&amp;nbsp; ReplaceResourceString(@SMsgDlgError, _NewSMsgDlgError);
&amp;nbsp; ReplaceResourceString(@SMsgDlgInformation, _NewSMsgDlgInformation);
&amp;nbsp; ReplaceResourceString(@SMsgDlgConfirm, _NewSMsgDlgConfirm);
&amp;nbsp; ReplaceResourceString(@SMsgDlgYes, _NewSMsgDlgYes);
&amp;nbsp; ReplaceResourceString(@SMsgDlgNo, _NewSMsgDlgNo);
&amp;nbsp; ReplaceResourceString(@SMsgDlgOK, _NewSMsgDlgOK);
&amp;nbsp; ReplaceResourceString(@SMsgDlgCancel, _NewSMsgDlgCancel);
&amp;nbsp; ReplaceResourceString(@SMsgDlgHelp, _NewSMsgDlgHelp);
&amp;nbsp; ReplaceResourceString(@SMsgDlgHelpNone, _NewSMsgDlgHelpNone);
&amp;nbsp; ReplaceResourceString(@SMsgDlgHelpHelp, _NewSMsgDlgHelpHelp);
&amp;nbsp; ReplaceResourceString(@SMsgDlgAbort, _NewSMsgDlgAbort);
&amp;nbsp; ReplaceResourceString(@SMsgDlgRetry, _NewSMsgDlgRetry);
&amp;nbsp; ReplaceResourceString(@SMsgDlgIgnore, _NewSMsgDlgIgnore);
&amp;nbsp; ReplaceResourceString(@SMsgDlgAll, _NewSMsgDlgAll);
&amp;nbsp; ReplaceResourceString(@SMsgDlgNoToAll, _NewSMsgDlgNoToAll);
&amp;nbsp; ReplaceResourceString(@SMsgDlgYesToAll, _NewSMsgDlgYesToAll);

end. &lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Cara pakainya tinggal di tambahkan ke project ( Project &amp;gt; Add to Project... )&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
kemudian use unit ( File &amp;gt; Use Unit...)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Setelah unit ditambahkan, maka penggunaan MessageDlg otomatis berubah menjadi Bahasa Indonesia.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Jika menghendaki bahasa lain tinggal dirubah saja konstanta pada unit uMessageDlgIndonesia sesuai keinginan, dengan demikian kita bisa mengkustomise Message Dialog tanpa merubah unit bawaanya Delphi yaitu Dialogs.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKbPQ0NssXapbL8twDAQ38GV6A8yO6Ad2RgtUO8rgBP3MVK6i_psALkmk-r29vPK0r8z3SL9j7BOJas6zkadcVFi3-Wu9ZUFwVdmEzTxBHo332O8qWGpNhxGU7vjZ_PZFiyD-T91cfPJlR/s1600/msgdlg.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKbPQ0NssXapbL8twDAQ38GV6A8yO6Ad2RgtUO8rgBP3MVK6i_psALkmk-r29vPK0r8z3SL9j7BOJas6zkadcVFi3-Wu9ZUFwVdmEzTxBHo332O8qWGpNhxGU7vjZ_PZFiyD-T91cfPJlR/s1600/msgdlg.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Jika males buat nih ada contoh program + source codenya :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://adf.ly/e5Eaq&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DOWNLOAD DIMARI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Sumber : &lt;a href=&quot;http://bprasetio.wordpress.com/2007/10/22/meng-indonesia-kan-messagedlg/&quot;&gt;http://bprasetio.wordpress.com/2007/10/22/meng-indonesia-kan-messagedlg/&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/1868206464701999965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2014/02/message-dialog-bahasa-indonesia-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/1868206464701999965'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/1868206464701999965'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2014/02/message-dialog-bahasa-indonesia-delphi.html' title='Message Dialog Bahasa Indonesia Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKbPQ0NssXapbL8twDAQ38GV6A8yO6Ad2RgtUO8rgBP3MVK6i_psALkmk-r29vPK0r8z3SL9j7BOJas6zkadcVFi3-Wu9ZUFwVdmEzTxBHo332O8qWGpNhxGU7vjZ_PZFiyD-T91cfPJlR/s72-c/msgdlg.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-8779475061144891965</id><published>2014-01-30T13:15:00.001+07:00</published><updated>2014-01-30T13:15:34.019+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="IBExpert"/><category scheme="http://www.blogger.com/atom/ns#" term="Interbase"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Contoh Sederhana Trigger dan Stored Procedure pada Interbase / Firebird</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Postingan kali ini ane share contoh program sederhana yang sudah menggunakan Trigger dan Stored Procedure.. Mudah-mudahan bisa memberi sedikit gambaran bagaimana Trigger dan Strored Procedure itu bekerja karena langsung ane terapkan dalam sebuah apikasi kecil...&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Sebenernya contoh program berikut ini adalah program yang sebelumnya uah pernah ane upload dengan judul &lt;a href=&quot;http://adf.ly/cpDy2&quot; target=&quot;_blank&quot;&gt;Koneksi Database Interbase / Firebird dengan Delphi 7&lt;/a&gt; cuma kali ini udah ane tambahkan Trigger dan Strored Procedure.. :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Program dibuat dengan Delphi7, dengan database Interbase 2007, tools IBExpert. &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
oke langsung saja ke TKP...&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Form Mahasiswa&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyq09qsV-xzzQQUBPFm4ZhyphenhyphenRO1VzD9QKtYB0YzFNNTP_VD8I9ogSVqKafmeKQudHQ84TLOLVnlBKu-1VwqIGr3kZuSeaalPWMgawbdL79TFeNiIOER93Kz2A1GReYuu5C_oxmHhH6qBsmk/s1600/mhs.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyq09qsV-xzzQQUBPFm4ZhyphenhyphenRO1VzD9QKtYB0YzFNNTP_VD8I9ogSVqKafmeKQudHQ84TLOLVnlBKu-1VwqIGr3kZuSeaalPWMgawbdL79TFeNiIOER93Kz2A1GReYuu5C_oxmHhH6qBsmk/s1600/mhs.jpg&quot; height=&quot;211&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Form Input Nilai&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip1qCH4gsFZAwoZTn7D6_87leY-ti_3P1UM9WnBrs6c2iNUVvjLbpv5rCj2HDXa0ByeUGR4_8bnWwLe76eu5K0wMv83BuQP1kzpAkKSzFNaPPsmp-PgohDwIbza0M1TasrbV5fHGsrhlk-/s1600/nilai.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip1qCH4gsFZAwoZTn7D6_87leY-ti_3P1UM9WnBrs6c2iNUVvjLbpv5rCj2HDXa0ByeUGR4_8bnWwLe76eu5K0wMv83BuQP1kzpAkKSzFNaPPsmp-PgohDwIbza0M1TasrbV5fHGsrhlk-/s1600/nilai.jpg&quot; height=&quot;222&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt; &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Pada form nilai, isi dari kolom keterangan akan terupdate otomatis setelah kita mengisikan nilai, proses ini menggunakan Trigger.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b&gt;Form Rekap Nilai &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyrW_5by_IhtuIqKp0t4i9r0h-4q3qrWOy93LosyoCOYxPT-cHzU_dKNKoo3vbxxxdAfAZ_lqTPSSVwvFh9DN6iPF2SUA6bb8RauUkVcefcuLn4Or9lY-HZP3GbPUHsaLyOkNry-Uhbgq7/s1600/rekap.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyrW_5by_IhtuIqKp0t4i9r0h-4q3qrWOy93LosyoCOYxPT-cHzU_dKNKoo3vbxxxdAfAZ_lqTPSSVwvFh9DN6iPF2SUA6bb8RauUkVcefcuLn4Or9lY-HZP3GbPUHsaLyOkNry-Uhbgq7/s1600/rekap.jpg&quot; height=&quot;221&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Kalo proses rekap nilai ini menggunakan Stored Procedure.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Berikut ini Trigger dan Stored Procedure nya... :D&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b&gt;Trigger&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnDm6EOhmEXaYpUjcp9r58aSl3CRFA7N_98TRTr1GVgT-mCpAInw2UQvvFQ3T_bOBZAhDBEVebk7d6NMHzGsMrcDQ-7Hz-aYUuoMJQV4oHdNk7hGBqxFDA2Yv7Z-intD1li-vSinPKtkNe/s1600/trigger.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnDm6EOhmEXaYpUjcp9r58aSl3CRFA7N_98TRTr1GVgT-mCpAInw2UQvvFQ3T_bOBZAhDBEVebk7d6NMHzGsMrcDQ-7Hz-aYUuoMJQV4oHdNk7hGBqxFDA2Yv7Z-intD1li-vSinPKtkNe/s1600/trigger.jpg&quot; height=&quot;237&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Trigger dibuat pada tabel Nilai dimana Trigger ini akan dikerjakan sebelum tabel Nilai terisi atau terupdate, maka buat Triggernya&amp;nbsp; BEFORE INSERT dan BEFORE UPDATE, Triggernya sama..&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Stored Procedure&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg3iN3xji2QJEYxRcSmJkROr3mKpizK3hTkGHfLEPSTiFf424-Eo3cDEm9r42UmW1z6pGJOWCGggO0CEZY5InlMoe_6q4YwdtjyLtYLStLt4d3BZmeIEBOG3gTIyNP4Eery2UWTuePPwnn/s1600/stored_procedure.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg3iN3xji2QJEYxRcSmJkROr3mKpizK3hTkGHfLEPSTiFf424-Eo3cDEm9r42UmW1z6pGJOWCGggO0CEZY5InlMoe_6q4YwdtjyLtYLStLt4d3BZmeIEBOG3gTIyNP4Eery2UWTuePPwnn/s1600/stored_procedure.jpg&quot; height=&quot;365&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Nah Stored Procedure ini untuk menampilkan semua nilai dari mahasiswa dan sekaligus menghitung nilai Minimum, Maksimum, dan Rata-rata nilai dari seluruh mahasiswa tersebut..&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://adf.ly/cpFnI&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;DOWNLOAD SOURCE CODE DAN DATABASE DISINI&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Semoga bermanfaat.. :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/8779475061144891965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2014/01/contoh-sederhana-trigger-dan-stored.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/8779475061144891965'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/8779475061144891965'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2014/01/contoh-sederhana-trigger-dan-stored.html' title='Contoh Sederhana Trigger dan Stored Procedure pada Interbase / Firebird'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyq09qsV-xzzQQUBPFm4ZhyphenhyphenRO1VzD9QKtYB0YzFNNTP_VD8I9ogSVqKafmeKQudHQ84TLOLVnlBKu-1VwqIGr3kZuSeaalPWMgawbdL79TFeNiIOER93Kz2A1GReYuu5C_oxmHhH6qBsmk/s72-c/mhs.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-3948138027461422328</id><published>2013-12-13T13:50:00.000+07:00</published><updated>2017-04-21T08:40:24.532+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Firebird"/><category scheme="http://www.blogger.com/atom/ns#" term="IBExpert"/><category scheme="http://www.blogger.com/atom/ns#" term="Interbase"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Koneksi Database Interbase / Firebird dengan Delphi 7</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Melanjutkan postingan &lt;a href=&quot;http://zallysoft.blogspot.com/2013/11/membuat-tabel-pada-interbase-firebird.html&quot; target=&quot;_blank&quot;&gt;membuat tabel pada interbase / firebird&lt;/a&gt; sekarang cara mengkoneksikan ke delphi nya menggunakan komponen standart Interbase. Pada contoh program kali ini ane pake Data Controls supaya minimum coding. Dan bagaimana caranya.. Langsung sajalah... :D&amp;nbsp; (&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt; newbie only &lt;/b&gt;&lt;/span&gt;)&lt;br /&gt;
&lt;br /&gt;
Database : Interbase 2007&lt;br /&gt;
Tools : IBExpert &lt;br /&gt;
IDE : Delphi 7&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Desain form kira-kira seperti berikut :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB7evv6bCPsZy7umv9ZYRh3I3pe_MwSuQHxLi38Hq92GTyiQe4DEeohXmMKZYTI1gNAv3zcqwPo0MRY4Ksho8MuhhJsRCsxMHa6cO6lWqNBksHMkEl7XiMOEeBvo5JZ66hpDxIjUv9oOc4/s1600/0.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB7evv6bCPsZy7umv9ZYRh3I3pe_MwSuQHxLi38Hq92GTyiQe4DEeohXmMKZYTI1gNAv3zcqwPo0MRY4Ksho8MuhhJsRCsxMHa6cO6lWqNBksHMkEl7XiMOEeBvo5JZ66hpDxIjUv9oOc4/s400/0.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Double klik komponen IBDatabase1, akan muncul dialog, seting seperti pada gambar&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKaAzMgDRSwjEF7NJpYxIcqBfbg8lSjORahb9O9OftSZjg02WafGZ_o8fQof4LmDKLwp_M_r4BACd8soItc2sPQoZoEVGvpDaXLkQLoVDGe1qUkBcnXqlTqBnlowad1PUrTbDBOhNCzMs1/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKaAzMgDRSwjEF7NJpYxIcqBfbg8lSjORahb9O9OftSZjg02WafGZ_o8fQof4LmDKLwp_M_r4BACd8soItc2sPQoZoEVGvpDaXLkQLoVDGe1qUkBcnXqlTqBnlowad1PUrTbDBOhNCzMs1/s400/1.JPG&quot; width=&quot;370&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Pada komponen IBDataset&lt;span style=&quot;color: #0000ee;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1 seting properties SelectSQL&lt;/span&gt;&lt;u&gt; &lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4NUucrlrPuDyj_nrUqbC6TiXRPqNrQYTCrcuFQNNH0bmKUpcikFE7pSRMZp4XdIqQQ-kPKykjzYqX7s4yuFKxklTiSRhFDXNYJFOblbzUfHwlfGFb97ZxeohXrMzkA0Ri3MVXh33pY4RO/s1600/2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4NUucrlrPuDyj_nrUqbC6TiXRPqNrQYTCrcuFQNNH0bmKUpcikFE7pSRMZp4XdIqQQ-kPKykjzYqX7s4yuFKxklTiSRhFDXNYJFOblbzUfHwlfGFb97ZxeohXrMzkA0Ri3MVXh33pY4RO/s400/2.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
kemudian pada komponen IBDataset1 klik kanan &amp;gt; Dataset Editor...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqbecqnioKQvxFL9fFLUSlXGBWllXTYZRkMbUEOVrzEnL36446v8tVpkk8_QY1J0EmcDXmvWOVtDBjIJu0ZnLBl4K6nfiZ5o1NT3tI3bFSlOofIv_ANW8_eeewbTVQ2Tt_JkU0GW8vnNz9/s1600/3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqbecqnioKQvxFL9fFLUSlXGBWllXTYZRkMbUEOVrzEnL36446v8tVpkk8_QY1J0EmcDXmvWOVtDBjIJu0ZnLBl4K6nfiZ5o1NT3tI3bFSlOofIv_ANW8_eeewbTVQ2Tt_JkU0GW8vnNz9/s400/3.JPG&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&amp;nbsp;klik Get Table Fields &amp;gt; klik NIM pada Key Field seperti yang terlihat pada gambar&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio6-6gDPxUQ64CaDN3CVI1o23GnaBFNfRgT8Dz9lZ7m2hIZKids4ykI0eOsUVpRZOb2hOYET8xJzzZK8XVcaH4vRuNvQ_y1_2Q3nLS1S4tIQrrp5CdpdNhLm6piRoV5uAhvqB0Q7NmRfeB/s1600/4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio6-6gDPxUQ64CaDN3CVI1o23GnaBFNfRgT8Dz9lZ7m2hIZKids4ykI0eOsUVpRZOb2hOYET8xJzzZK8XVcaH4vRuNvQ_y1_2Q3nLS1S4tIQrrp5CdpdNhLm6piRoV5uAhvqB0Q7NmRfeB/s400/4.JPG&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
kemudian klik Generate SQL, jika benar akan menjadi seperti gambar berikut&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpwgQrrid8PMInDTBAoSKZ9xcNEwu2CRbfFRhsEBB2w2S7uEfkAiO7w8jyOBAB76EMBGI6FdHrWqBae4pkxhThDtVZfDkEOGOqRVJZFDgsqtofRCRxkQkxI39cw_ZROhbGoro1r56NkQ4I/s1600/5.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpwgQrrid8PMInDTBAoSKZ9xcNEwu2CRbfFRhsEBB2w2S7uEfkAiO7w8jyOBAB76EMBGI6FdHrWqBae4pkxhThDtVZfDkEOGOqRVJZFDgsqtofRCRxkQkxI39cw_ZROhbGoro1r56NkQ4I/s400/5.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Pada komponen ActionList1 double klik, akan muncul dialog, seting saja seperti gambar&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNQrFMWr4IMYXxkL1cLBpL-Igi7P758qLCZs9DeFIXyA3icv2U__6rNgH6ew3HmyWkKNmKKNID5PIkvn1EoujSTul3nh1E0Zff6TQe-HC1tawS7RnlbygUtN6Zs9MzBlO_Zw2Ymqh4o_P0/s1600/7.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;361&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNQrFMWr4IMYXxkL1cLBpL-Igi7P758qLCZs9DeFIXyA3icv2U__6rNgH6ew3HmyWkKNmKKNID5PIkvn1EoujSTul3nh1E0Zff6TQe-HC1tawS7RnlbygUtN6Zs9MzBlO_Zw2Ymqh4o_P0/s400/7.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzBbQaJ7jImYRd7FVG4E0SOhmhauF9Td-NEx5r9U2Dz05S0u6iz7rLChZg9ptGtYGAYsPXv5rtSg1sp72QPEMVXIIeLePhmzUZIkwS7McyZXWTMKll0nN6a3vRbESqWGqEp0r8OIfba9Pi/s1600/8.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzBbQaJ7jImYRd7FVG4E0SOhmhauF9Td-NEx5r9U2Dz05S0u6iz7rLChZg9ptGtYGAYsPXv5rtSg1sp72QPEMVXIIeLePhmzUZIkwS7McyZXWTMKll0nN6a3vRbESqWGqEp0r8OIfba9Pi/s400/8.JPG&quot; width=&quot;258&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQsluMxCZxssRrlZwKPnne-3LpQQYbdGScDOlRRnPXIjF2kfJyOZt-hPAfBbBa9fdh5L8RQ594ezLMFlGlPwXUat6Tts10ROm9BZQEjHI0MDsYGJExi0VFE3Tr_M5cW3Ui1Kh7u6zA-6Fz/s1600/9.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;362&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQsluMxCZxssRrlZwKPnne-3LpQQYbdGScDOlRRnPXIjF2kfJyOZt-hPAfBbBa9fdh5L8RQ594ezLMFlGlPwXUat6Tts10ROm9BZQEjHI0MDsYGJExi0VFE3Tr_M5cW3Ui1Kh7u6zA-6Fz/s400/9.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Berikut komponen-komponen yang perlu disetting propertiesnya&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
  &lt;th&gt;Komponen&lt;/th&gt;
  &lt;th&gt;Properties&lt;/th&gt;
  &lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Label1&lt;/td&gt;
  &lt;td&gt;Caption&lt;/td&gt;
  &lt;td&gt;NIM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Label2&lt;/td&gt;
  &lt;td&gt;Caption&lt;/td&gt;
  &lt;td&gt;NAMA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;3&quot;&gt;DBEdit1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;DataSource&lt;/td&gt;
  &lt;td&gt;DataSource1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;DataField&lt;/td&gt;
  &lt;td&gt;NIM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;3&quot;&gt;DBEdit2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;DataSource&lt;/td&gt;
  &lt;td&gt;DataSource1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;DataField&lt;/td&gt;
  &lt;td&gt;NAMA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;3&quot;&gt;IBDatabase1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;DefaultTransaction&lt;/td&gt;
  &lt;td&gt;IBTransaction1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Connected&lt;/td&gt;
  &lt;td&gt;True&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;3&quot;&gt;IBTransaction1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Active&lt;/td&gt;
  &lt;td&gt;True&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;DefaultDatabase&lt;/td&gt;
  &lt;td&gt;IBDatabase1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;3&quot;&gt;IBDataset1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Database&lt;/td&gt;
  &lt;td&gt;IBDatabase1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Transaction&lt;/td&gt;
  &lt;td&gt;IBTransaction1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;3&quot;&gt;DataSource1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;AutoEdit&lt;/td&gt;
  &lt;td&gt;False&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;DataSet&lt;/td&gt;
  &lt;td&gt;IBDataset1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;4&quot;&gt;DBGrid1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Align&lt;/td&gt;
  &lt;td&gt;alBottom&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;DataSource&lt;/td&gt;
  &lt;td&gt;DataSource1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;ReadOnly&lt;/td&gt;
  &lt;td&gt;True&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;2&quot;&gt;Button1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Action&lt;/td&gt;
  &lt;td&gt;DataSetInsert1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;2&quot;&gt;Button2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Action&lt;/td&gt;
  &lt;td&gt;DataSetPost1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;2&quot;&gt;Button3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Action&lt;/td&gt;
  &lt;td&gt;DataSetEdit1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;2&quot;&gt;Button4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Action&lt;/td&gt;
  &lt;td&gt;DataSetCancel1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td rowspan=&quot;2&quot;&gt;Button5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Action&lt;/td&gt;
  &lt;td&gt;DataSetDelete1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td rowspan=&quot;2&quot;&gt;ActionList1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;-&lt;/td&gt;
  &lt;td&gt;-&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Hasil screenshot &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdJZKeMysXKykUirSmR1aV0SuleNJBQ21qUM0rkDgb1ZKBi_dr_ue2W6a9MCamHg945m2Zj_I7uYzGospPhuSpvZ3repU_xCLpF_7pQgvc1F8KvZpHJF8wRkTOlAucROjh2mNisT_mDsPC/s1600/6.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdJZKeMysXKykUirSmR1aV0SuleNJBQ21qUM0rkDgb1ZKBi_dr_ue2W6a9MCamHg945m2Zj_I7uYzGospPhuSpvZ3repU_xCLpF_7pQgvc1F8KvZpHJF8wRkTOlAucROjh2mNisT_mDsPC/s400/6.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Full Source Code &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:html&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, DB, IBCustomDataSet, IBDatabase, StdCtrls, ActnList, Grids,&lt;br /&gt;  DBGrids, DBActns, Mask, DBCtrls;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;TDataSetInsert = class (DBActns.TDataSetInsert)&lt;br /&gt;  procedure UpdateTarget(Target:TObject); override;&lt;br /&gt;end;&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    IBDatabase1: TIBDatabase;&lt;br /&gt;    IBTransaction1: TIBTransaction;&lt;br /&gt;    IBDataSet1: TIBDataSet;&lt;br /&gt;    DBGrid1: TDBGrid;&lt;br /&gt;    ActionList1: TActionList;&lt;br /&gt;    DataSource1: TDataSource;&lt;br /&gt;    Button1: TButton;&lt;br /&gt;    Button2: TButton;&lt;br /&gt;    Button3: TButton;&lt;br /&gt;    Button4: TButton;&lt;br /&gt;    DataSetInsert1: TDataSetInsert;&lt;br /&gt;    DataSetDelete1: TDataSetDelete;&lt;br /&gt;    DataSetEdit1: TDataSetEdit;&lt;br /&gt;    DataSetPost1: TDataSetPost;&lt;br /&gt;    DataSetCancel1: TDataSetCancel;&lt;br /&gt;    Button5: TButton;&lt;br /&gt;    DBEdit1: TDBEdit;&lt;br /&gt;    DBEdit2: TDBEdit;&lt;br /&gt;    Label1: TLabel;&lt;br /&gt;    Label2: TLabel;&lt;br /&gt;    procedure FormCreate(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;{ TDataSetInsert }&lt;br /&gt;&lt;br /&gt;procedure TDataSetInsert.UpdateTarget(Target: TObject);&lt;br /&gt;begin&lt;br /&gt;  with GetDataSet(Target) do&lt;br /&gt;  Enabled := Active and CanModify and (State=dsBrowse);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.FormCreate(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  IBDataSet1.Open;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.&lt;/pre&gt;&lt;br /&gt;
&lt;a href=&quot;http://adf.ly/afS1e&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Download Source Code&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/3948138027461422328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/12/koneksi-database-interbase-firebird.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/3948138027461422328'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/3948138027461422328'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/12/koneksi-database-interbase-firebird.html' title='Koneksi Database Interbase / Firebird dengan Delphi 7'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB7evv6bCPsZy7umv9ZYRh3I3pe_MwSuQHxLi38Hq92GTyiQe4DEeohXmMKZYTI1gNAv3zcqwPo0MRY4Ksho8MuhhJsRCsxMHa6cO6lWqNBksHMkEl7XiMOEeBvo5JZ66hpDxIjUv9oOc4/s72-c/0.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-8381142435197724598</id><published>2013-11-19T12:51:00.001+07:00</published><updated>2013-11-19T12:52:45.995+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Firebird"/><category scheme="http://www.blogger.com/atom/ns#" term="IBExpert"/><category scheme="http://www.blogger.com/atom/ns#" term="Interbase"/><category scheme="http://www.blogger.com/atom/ns#" term="RDBMS"/><title type='text'>Membuat Tabel Pada Interbase / Firebird via IBExpert</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Oke langsung saja... Sebelumnya ane pernah membahas bagaimana cara membuat database Interbase/Firebird menggunakan tool ibexpert, jika belum menyimak bisa kunjungi &lt;a href=&quot;http://zallysoft.blogspot.com/2013/03/membuat-database-interbase-via-ibexpert.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;disini&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;. Mengapa harus pake tool IBExpert, karena menurut ane pribadi tool ini sangat bagus sekali rekomended banget bagi developer yang khususnya make database Interbase/Firebird. Untuk tool nya bisa di download &lt;a href=&quot;http://ibexpert.net/ibe/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;disini&lt;/b&gt;&lt;/span&gt;&lt;/a&gt; (gratis).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Setelah membuat database, kali ini ane mau ngeshare bagaimana cara membuat tabel pada Interbase/Firebird, pastinya make tool &lt;a href=&quot;http://ibexpert.net/ibe/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;IBExpert&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;. Jalankan IBExpert, akan muncul tampilan utama. Kemudian klik Register Database.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI3F60pGLU_tc7avEeSrs9mdhi5SclIvLrWAOoaUwucIS-ah6VoYAfl6wZuHK6-t3ODeqQcAnRE8RXkBTR-ij2RxVrRtyO4A15EVBgmo_rfoKQAqDipktb5duYy5Tu0la77vFz4Z_BpbNS/s1600/ibexpert.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI3F60pGLU_tc7avEeSrs9mdhi5SclIvLrWAOoaUwucIS-ah6VoYAfl6wZuHK6-t3ODeqQcAnRE8RXkBTR-ij2RxVrRtyO4A15EVBgmo_rfoKQAqDipktb5duYy5Tu0la77vFz4Z_BpbNS/s400/ibexpert.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3WYD7yN8wsLtCMWslIF9dyrzTrZJt0HDG-fMgYHYsqQLRrqW-8XDq_FHex5GKnfH4kNNuWHg0ZGzcbGvXy8qtOjFxqw66dq8oWc4MPRAQ2YO5wTgxEnKXumoDOa6hAty05nTOLtt6aFGP/s1600/regdbase.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3WYD7yN8wsLtCMWslIF9dyrzTrZJt0HDG-fMgYHYsqQLRrqW-8XDq_FHex5GKnfH4kNNuWHg0ZGzcbGvXy8qtOjFxqw66dq8oWc4MPRAQ2YO5wTgxEnKXumoDOa6hAty05nTOLtt6aFGP/s400/regdbase.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Ada beberapa yang harus diisi, seperti &lt;span style=&quot;color: blue;&quot;&gt;Server&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;Server Version&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;Database File&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;Database Alias&lt;/span&gt; (optional), &lt;span style=&quot;color: blue;&quot;&gt;User Name&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;Password&lt;/span&gt;, dan &lt;span style=&quot;color: blue;&quot;&gt;Always capitalize database objects names&lt;/span&gt; (optional berfungsi untuk otomatis semua object memakai huruf kapital) kemudian klik Register. Akan tampil sperti gambar berikut :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk6YBk_Z61tvCXHXdggGWjPzcHfX4iDjU5yIbXgEIMOWV8fPDQIexmI5mcTNgN3EjdwV7uzQAsRaHZ8Uk59AdbbKKpQaADyhC7ju99grxCuRRlhYzKKtqPLpotQOdD8dz9N_IA6-XFbdcE/s1600/regdbase2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk6YBk_Z61tvCXHXdggGWjPzcHfX4iDjU5yIbXgEIMOWV8fPDQIexmI5mcTNgN3EjdwV7uzQAsRaHZ8Uk59AdbbKKpQaADyhC7ju99grxCuRRlhYzKKtqPLpotQOdD8dz9N_IA6-XFbdcE/s400/regdbase2.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Double klik pada Database yang sudah diregister atau klik Connect to Database untuk mengkonekan database. Setelah database terkoneksi, sekarang kita buat tabel-tabelnya. Pilih tabel dan klik new tabel.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Membuat tabel Mahasiswa.&lt;br /&gt;
Pada
 waktu membuat tabel, untuk membuat Primary Key tinggal klik aja pada 
kolom PK, pilih field mana yang akan dijadikan sebagai Primary Key, akan
 muncul tanda Kunci seperti yg terlihat pada gambar di bawah. Kemudian 
klik Compile ( Gambar Petir ) trus klik Commit.&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlbGbJv7xBVn9zVAKlYpWtLIlkBWD2W6ytjQKNFLRYuRxy022OMF6d0HQVMmWEWMXnf8Nah-Ossn0twip2s-rG3aKMAXVcLLmvyxMZi56itml_Equr6YJMDpp0Njrv8VbecEmis5YEL1n/s1600/tabelmhs.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlbGbJv7xBVn9zVAKlYpWtLIlkBWD2W6ytjQKNFLRYuRxy022OMF6d0HQVMmWEWMXnf8Nah-Ossn0twip2s-rG3aKMAXVcLLmvyxMZi56itml_Equr6YJMDpp0Njrv8VbecEmis5YEL1n/s400/tabelmhs.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
Membuat tabel Nilai.&lt;br /&gt;
Nah pada tabel nilai ini akan ane tunjukan bagaimana membuat Foreign Key dan nomor urut (auto increment field) yang akan terisi secara otomatis nomornya (ex: 1,2,3,4,5,dst...). Cara membuat tabel nilai sama seperti membuat tabel mahasiswa. kira-kira seperti gambar berikut :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfiRmLN7U5wLC1RZbrtoUbvWke2L-7I3KUjeed3rrzT3Fezpb4p6MleuD4WYfvXcnajzMPDpNQPtJZfipUDXkhiX4h2tzhYUXSrvUXGdqg4kT0n2ymvvcx7JQgqz7zdHilVj757wFw2gAg/s1600/tabelnilai.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfiRmLN7U5wLC1RZbrtoUbvWke2L-7I3KUjeed3rrzT3Fezpb4p6MleuD4WYfvXcnajzMPDpNQPtJZfipUDXkhiX4h2tzhYUXSrvUXGdqg4kT0n2ymvvcx7JQgqz7zdHilVj757wFw2gAg/s400/tabelnilai.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Field ID akan dijadikan sebagai auto increment field jadi harus bertipe integer, cara buatnya cukup mudah. Pilih field ID kemudian klik AI sperti gambar berikut, semua akan di generate secara otomatis :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNee3acZZj7nWm7Nc72QNVPyyAGR-bR0h3Bss4GI8w2tJ5VtfGYdlPk6iwQu99RfiQ0G4aeA2IpbvDQaJsU5mgADHJVSHMxu0Hd6uoCM7Q-gbPJqbPHMu65LJQlKjTIZh_gOk6YMOXXqNG/s1600/inc1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNee3acZZj7nWm7Nc72QNVPyyAGR-bR0h3Bss4GI8w2tJ5VtfGYdlPk6iwQu99RfiQ0G4aeA2IpbvDQaJsU5mgADHJVSHMxu0Hd6uoCM7Q-gbPJqbPHMu65LJQlKjTIZh_gOk6YMOXXqNG/s400/inc1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCAfeomVQkPautyKrYxgwzEy6jr0R945P_v1plrouxWq7yR-nreoFUtLkho2GDQdiIPyrhT87qS4ePftBTKJbhGN_09I5pA6dlNSoeOCvXJbo_uupSuXuf973XWxe7i91IXn2wyZ7e05M6/s1600/inc2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;273&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCAfeomVQkPautyKrYxgwzEy6jr0R945P_v1plrouxWq7yR-nreoFUtLkho2GDQdiIPyrhT87qS4ePftBTKJbhGN_09I5pA6dlNSoeOCvXJbo_uupSuXuf973XWxe7i91IXn2wyZ7e05M6/s400/inc2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCf34X8RfAHCsbmCr-_8N3ThX9gibrNQ7AUa3kJeFfczB1bNq7RBRZVo_f79ltNXhr5gqADwmiDzv2dmQsqx3hJnpcdRGEn22mIh6sFAbHUHFi5c2lImJeEeC1CJjb310MJPar-WRNy06y/s1600/inc3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;273&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCf34X8RfAHCsbmCr-_8N3ThX9gibrNQ7AUa3kJeFfczB1bNq7RBRZVo_f79ltNXhr5gqADwmiDzv2dmQsqx3hJnpcdRGEn22mIh6sFAbHUHFi5c2lImJeEeC1CJjb310MJPar-WRNy06y/s400/inc3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbb2m4_tBYAIXi3TL0o8T-6tUYy73Z5r5yxKMyiR_bb_D3TB0bROPjsBU0lAE-8Kmzbaa8Ys-rQFkLvnPeFIr3ELZdRSUlGadlHyxLqh6eB8JukbWuo7dUoYVXAGlPnuUjmS1zyYsxaTjy/s1600/inc3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Sekarang membuat Foreign Key.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Pilih Tab Constraints &amp;gt; Foreign Keys &amp;gt; Klik kanan New Foreign Key.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYuMITNWAqw4Uh611BlQ80yF2DmhBaC9awfn8mLmXefeg9Kpo-JLt_H4S2GmRMsESgb8sjmvW3b_DV2UiUlnTSFqX4OcqCS7BMR_6Ed_zufkJGLVaAV0ef-8-w4CYRBjiPcKswhMVnnRm4/s1600/FK1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYuMITNWAqw4Uh611BlQ80yF2DmhBaC9awfn8mLmXefeg9Kpo-JLt_H4S2GmRMsESgb8sjmvW3b_DV2UiUlnTSFqX4OcqCS7BMR_6Ed_zufkJGLVaAV0ef-8-w4CYRBjiPcKswhMVnnRm4/s400/FK1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxlnCJLzAETjgiQmaOLSTUPAl8Z07vqQE7IFj9fIbypY936yTLDmKCn4DZS_MyOhdCLghaoa9oiLrLmhaAj_dt00QaRx_UVuppQ9mgvy3D1sPf06Vym4d_oNs0HcpI5IJQ5lMvMZxhp6cu/s1600/FK2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxlnCJLzAETjgiQmaOLSTUPAl8Z07vqQE7IFj9fIbypY936yTLDmKCn4DZS_MyOhdCLghaoa9oiLrLmhaAj_dt00QaRx_UVuppQ9mgvy3D1sPf06Vym4d_oNs0HcpI5IJQ5lMvMZxhp6cu/s400/FK2.jpg&quot; width=&quot;400&quot; /&gt;&lt;span id=&quot;goog_409243774&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_409243775&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_baNqIBBjH7rnXgqWskCrVIoULcGbSpuUcv2lj5KjVju1j2Pv7xRvjgdiyt5jq6uIr4T5vioLVh5LVuZIoctKvLitRmQQGsrwf7cM0kfufkB2wCZWAIX0KHKah9ntdMM2ayTPWSr9UfDM/s1600/FK3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_baNqIBBjH7rnXgqWskCrVIoULcGbSpuUcv2lj5KjVju1j2Pv7xRvjgdiyt5jq6uIr4T5vioLVh5LVuZIoctKvLitRmQQGsrwf7cM0kfufkB2wCZWAIX0KHKah9ntdMM2ayTPWSr9UfDM/s400/FK3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYjupbwK-WvNijW1hoHddkBuoNWka63hyv1YykYcH3zlwL4HZn4qjpDotROsLlwzspoD-qFq31_eLxLQaLieO-KViOwpJItOTg1Jp69Aizu6zBbym3qBW9R43flZqwIamvPKuNanW6wGMT/s1600/FK4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYjupbwK-WvNijW1hoHddkBuoNWka63hyv1YykYcH3zlwL4HZn4qjpDotROsLlwzspoD-qFq31_eLxLQaLieO-KViOwpJItOTg1Jp69Aizu6zBbym3qBW9R43flZqwIamvPKuNanW6wGMT/s400/FK4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Jika sudah selesai semua akan tampil seperti gambar berikut :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr57OGEpmvOOuWrgFXK7afT6Lf97R79mLIamkjkGC6Q5P4p2nv5Zog5pjSlUVubW7a0IB5WdZJPpRT8HZVWN2Y5VLzL1nmTSVrXlI-BwGY7EGjBTe2bLhrljjg-tBbD5G1fgBWvXhzkC8T/s1600/tabeljadi.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr57OGEpmvOOuWrgFXK7afT6Lf97R79mLIamkjkGC6Q5P4p2nv5Zog5pjSlUVubW7a0IB5WdZJPpRT8HZVWN2Y5VLzL1nmTSVrXlI-BwGY7EGjBTe2bLhrljjg-tBbD5G1fgBWvXhzkC8T/s400/tabeljadi.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
akan terdapat dua tabel (mahasiswa, nilai) trigger dan generator. nah trigger dan generator ini yang berperan untuk membuat nomor otomatis (auto increment filed) tadi. Sekian coretan dari ane, semoga ilmunya bermanfaat... :D&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/8381142435197724598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/11/membuat-tabel-pada-interbase-firebird.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/8381142435197724598'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/8381142435197724598'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/11/membuat-tabel-pada-interbase-firebird.html' title='Membuat Tabel Pada Interbase / Firebird via IBExpert'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI3F60pGLU_tc7avEeSrs9mdhi5SclIvLrWAOoaUwucIS-ah6VoYAfl6wZuHK6-t3ODeqQcAnRE8RXkBTR-ij2RxVrRtyO4A15EVBgmo_rfoKQAqDipktb5duYy5Tu0la77vFz4Z_BpbNS/s72-c/ibexpert.jpg" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-1815725114108446836</id><published>2013-10-16T10:54:00.000+07:00</published><updated>2013-10-16T14:37:05.780+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Firebird"/><category scheme="http://www.blogger.com/atom/ns#" term="Interbase"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Post Event pada Interbase dan Firebird</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Seringkali dalam membuat aplikasi mengalami hal seperti ini (biasanya pada kasus aplikasi client server). Ada 2 aplikasi yang jalan secara bersamaan misal A dan B, dimana jika A melakukan transaksi maka B bisa langsung terupdate secara realtime tanpa mengeklik tombol Refresh. Nah biasanya pada kasus seperti ini masih ada yang menggunakan tombol Refresh atau Timer untuk merefresh Datasetnya. Berikut ini merupakan jawaban untuk kasus tersebut.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;POST_EVENT&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Posting sebuah event untuk event manager. Ketika suatu proses terjadi (misal proses insert update delete), pernyataan ini akan memberitahu event manager, yang mana memperingatkan aplikasi untuk menunggu nama eventnya. Post event ini sifatnya &lt;b&gt;CASE SENSITIVE&lt;/b&gt;, jadi penulisan huruf besar kecilnya harus sama saat membuat dan saat memanggil event tersebut. Kalo ane bilang ini post_event ibarat trigger disisi aplikasi :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dalam kasus ini khususnya bagi para pengguna Delphi dengan database 
Firebird atau Interbase, karena pada database yang lain ane belum tau 
udah ada fitur post_event apa belum.&lt;br /&gt;
&lt;br /&gt;
Sudah ane praktekan menggunakan Delphi databasenya Interbase komponen FIBPlus (recomended) pada jaringan lokal dan jaringan via Hamachi. Tool yang digunakan untuk mengolah databasenya adalah IBExpert (recomended).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Langsung saja pada contoh ane buat database &lt;b&gt;DATA.IB&lt;/b&gt; dengan satu tabel yaitu tabel &lt;b&gt;MHS&lt;/b&gt;, kemudian ane buat &lt;b&gt;TRIGGER&lt;/b&gt; dan &lt;b&gt;POST_EVENT&lt;/b&gt; dengan nama &lt;b&gt;refresh&lt;/b&gt; pada tabel MHS After Insert, After Update, dan After Delete seperti gambar berikut.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJN8_pQPalW87kfw-fw4Qydr6A_iMpzaJ91vd6mjTdnirC17tBNq87NUl8hi_9FtMIEXPOAQHZXlxmphkoGXI5e-xjY5YVpaRbsJ-Arv26gKfY5AnvwzpdCKjTi4aRsxIrYLmlwtIhbFEl/s1600/ea1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJN8_pQPalW87kfw-fw4Qydr6A_iMpzaJ91vd6mjTdnirC17tBNq87NUl8hi_9FtMIEXPOAQHZXlxmphkoGXI5e-xjY5YVpaRbsJ-Arv26gKfY5AnvwzpdCKjTi4aRsxIrYLmlwtIhbFEl/s400/ea1.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Kemudian desain tampilan aplikasi menggunakan komponen FIBPlus, kira-kira seperti berikut.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNQhwBR6zQL3GSGxKcxmJpJ1uv7FAQMiG4h13nFdig8CqWHSQHouGVsTXKPcOld0qaH7mk2orbCutnFtSSUggodlHFnJhEw7_RMm28wrg539GrmsMQBqUDhwwXUfPE7cr-zzNGcp83e9El/s1600/ea2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNQhwBR6zQL3GSGxKcxmJpJ1uv7FAQMiG4h13nFdig8CqWHSQHouGVsTXKPcOld0qaH7mk2orbCutnFtSSUggodlHFnJhEw7_RMm28wrg539GrmsMQBqUDhwwXUfPE7cr-zzNGcp83e9El/s400/ea2.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
Pada komponen EventAlert tambahkan nama Event nya, ingat besar kecil nama event harus sama.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyhVxMUZo4ONs9y19ZH-UQSTqMPtO3oWxSOMT-5X6KlF9BD2Zfia6SHcKFYoF_8WnUKiq7x5tvDi9WElhU5otxnbk7d4H1cF-AFFsocZAfnRtNoRF-pvXgoaokoOvRVtcqK_QwoIMBgdrr/s1600/ea3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyhVxMUZo4ONs9y19ZH-UQSTqMPtO3oWxSOMT-5X6KlF9BD2Zfia6SHcKFYoF_8WnUKiq7x5tvDi9WElhU5otxnbk7d4H1cF-AFFsocZAfnRtNoRF-pvXgoaokoOvRVtcqK_QwoIMBgdrr/s400/ea3.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Double klik pada komponen EventAlert atau pada Object Inspector Event OnEventAlert, kemudian ketikan kode berikut.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWNA091gyhkehUiqyla_6tUXEGWFM93hpLzcaZNsLX6IxUSLswnjRf0saSvZYPYa1oBv1UV-94CMVs30gFuLhcwIgK2WKWEkpsvW4TncwBLGG2_LX7qduvIrvsbcWi_bz6-HOgJZhr0iCJ/s1600/ea5.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWNA091gyhkehUiqyla_6tUXEGWFM93hpLzcaZNsLX6IxUSLswnjRf0saSvZYPYa1oBv1UV-94CMVs30gFuLhcwIgK2WKWEkpsvW4TncwBLGG2_LX7qduvIrvsbcWi_bz6-HOgJZhr0iCJ/s400/ea5.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Nah ini screen shot hasil ujicoba pada jaringan via Hamachi, PC Server di Semarang, PC Client di Boyolali. Pada saat transaksi dilakukan di PC Client maka di PC Server tak perlu melakukan refresh secara manual atau pake timer, karena sudah dipicu dengan post event tadi.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3nGBPcunLf2vGQ-dq9HGxTVrqCoH8zSxL9wcAG-3VDtuchq0yVOOo3S2ysA1c5Mv-Ly1oIBtHZmqqVlp89lGV4kHJoheu88UuCDpOXnUwTFjI04KmvMuymmo7gLkHYmOLWdokMju9YZx3/s1600/event-alert.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3nGBPcunLf2vGQ-dq9HGxTVrqCoH8zSxL9wcAG-3VDtuchq0yVOOo3S2ysA1c5Mv-Ly1oIBtHZmqqVlp89lGV4kHJoheu88UuCDpOXnUwTFjI04KmvMuymmo7gLkHYmOLWdokMju9YZx3/s400/event-alert.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Thanks buat Pak &lt;b&gt;&lt;a href=&quot;https://www.facebook.com/imam.chalimi&quot; target=&quot;_blank&quot;&gt;Imam Chalimi&lt;/a&gt;&lt;/b&gt; yang telah mengajarkan teknik post event ini, dan Mas &lt;b&gt;&lt;a href=&quot;https://www.facebook.com/mboloz&quot; target=&quot;_blank&quot;&gt;Endra Wijaya&lt;/a&gt;&lt;/b&gt; yang bersedia membantu dalam uji coba aplikasi..&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/1815725114108446836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/10/post-event-pada-interbase-dan-firebird.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/1815725114108446836'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/1815725114108446836'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/10/post-event-pada-interbase-dan-firebird.html' title='Post Event pada Interbase dan Firebird'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJN8_pQPalW87kfw-fw4Qydr6A_iMpzaJ91vd6mjTdnirC17tBNq87NUl8hi_9FtMIEXPOAQHZXlxmphkoGXI5e-xjY5YVpaRbsJ-Arv26gKfY5AnvwzpdCKjTi4aRsxIrYLmlwtIhbFEl/s72-c/ea1.JPG" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-407637183433495086</id><published>2013-09-27T14:37:00.000+07:00</published><updated>2013-09-27T14:37:30.588+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Capture Console Output Realtime Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Aplikasi ini berfungsi mengcapture output dari console. Seperti kita menjalankan perintah dari cmd, nah ini dibuat dengan delphi. Pada aplikasi yang sederhana ini sudah menggunakan teknik threading, jadi pada saat proses berjalaan bersamaan tidak saling mengganggu satu sama lain. Terdapat 2 contoh pada aplikasi, yang satu pake threading dan yang satu tidak pake, supaya kita bisa membedakan dan paham cara kerja threading itu seperti apa..&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Oke langsung saja gak usah pake lama...nih full source code nya... :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, StdCtrls, ExtCtrls;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TmyThread = class(TThread)&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;    fCommand   : String;&lt;br /&gt;    fParameter : String;&lt;br /&gt;  protected&lt;br /&gt;    procedure Execute; override;&lt;br /&gt;  public&lt;br /&gt;     constructor Create(Suspended: Boolean);//add thread constructor&lt;br /&gt;     property Command: String read fCommand write fCommand;&lt;br /&gt;     property Parameter: String read fParameter write fParameter;&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    ed1: TEdit;&lt;br /&gt;    ed2: TEdit;&lt;br /&gt;    mmo1: TMemo;&lt;br /&gt;    b1: TButton;&lt;br /&gt;    lbl1: TLabel;&lt;br /&gt;    lbl2: TLabel;&lt;br /&gt;    tmr1: TTimer;&lt;br /&gt;    Label1: TLabel;&lt;br /&gt;    b2: TButton;&lt;br /&gt;    procedure tmr1Timer(Sender: TObject);&lt;br /&gt;    procedure b1Click(Sender: TObject);&lt;br /&gt;    procedure b2Click(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;procedure CaptureConsoleOutput(const ACommand, AParameters: String; AMemo: TMemo);&lt;br /&gt; const&lt;br /&gt;   CReadBuffer = 2400;&lt;br /&gt; var&lt;br /&gt;   saSecurity: TSecurityAttributes;&lt;br /&gt;   hRead: THandle;&lt;br /&gt;   hWrite: THandle;&lt;br /&gt;   suiStartup: TStartupInfo;&lt;br /&gt;   piProcess: TProcessInformation;&lt;br /&gt;   pBuffer: array[0..CReadBuffer] of Char;&lt;br /&gt;   dRead: DWord;&lt;br /&gt;   dRunning: DWord;&lt;br /&gt; begin&lt;br /&gt;   saSecurity.nLength := SizeOf(TSecurityAttributes);&lt;br /&gt;   saSecurity.bInheritHandle := True;&lt;br /&gt;   saSecurity.lpSecurityDescriptor := nil;&lt;br /&gt;&lt;br /&gt;   if CreatePipe(hRead, hWrite, @saSecurity, 0) then&lt;br /&gt;   begin&lt;br /&gt;     FillChar(suiStartup, SizeOf(TStartupInfo), #0);&lt;br /&gt;     suiStartup.cb := SizeOf(TStartupInfo);&lt;br /&gt;     suiStartup.hStdInput := hRead;&lt;br /&gt;     suiStartup.hStdOutput := hWrite;&lt;br /&gt;     suiStartup.hStdError := hWrite;&lt;br /&gt;     suiStartup.dwFlags := STARTF_USESTDHANDLES or STARTF_USESHOWWINDOW;    &lt;br /&gt;     suiStartup.wShowWindow := SW_HIDE; &lt;br /&gt;&lt;br /&gt;     if CreateProcess(nil, PChar(ACommand + &#39; &#39; + AParameters), @saSecurity,&lt;br /&gt;       @saSecurity, True, NORMAL_PRIORITY_CLASS, nil, nil, suiStartup, piProcess)&lt;br /&gt;       then&lt;br /&gt;     begin&lt;br /&gt;       repeat&lt;br /&gt;         dRunning  := WaitForSingleObject(piProcess.hProcess, 100);        &lt;br /&gt;         Application.ProcessMessages();&lt;br /&gt;         repeat&lt;br /&gt;           dRead := 0;&lt;br /&gt;           ReadFile(hRead, pBuffer[0], CReadBuffer, dRead, nil);          &lt;br /&gt;           pBuffer[dRead] := #0;&lt;br /&gt;&lt;br /&gt;           OemToAnsi(pBuffer, pBuffer);&lt;br /&gt;           AMemo.Lines.Add(String(pBuffer));&lt;br /&gt;         until (dRead &lt; CReadBuffer);&lt;br /&gt;       until (dRunning &lt;&gt; WAIT_TIMEOUT);&lt;br /&gt;       CloseHandle(piProcess.hProcess);&lt;br /&gt;       CloseHandle(piProcess.hThread);&lt;br /&gt;     end; &lt;br /&gt;&lt;br /&gt;     CloseHandle(hRead);&lt;br /&gt;     CloseHandle(hWrite);&lt;br /&gt;   end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.tmr1Timer(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  if Label1.Visible = True then Label1.Visible := False&lt;br /&gt;  else Label1.Visible := True;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;{ TmyThread }&lt;br /&gt;&lt;br /&gt;constructor TmyThread.Create(Suspended: Boolean);&lt;br /&gt;begin&lt;br /&gt;  inherited;&lt;br /&gt;  FreeOnTerminate := True;&lt;br /&gt;  fCommand    := &#39;&#39;;&lt;br /&gt;  fParameter  := &#39;&#39;;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TmyThread.Execute;&lt;br /&gt;begin&lt;br /&gt;  inherited;&lt;br /&gt;  CaptureConsoleOutput(Self.fCommand,Self.fParameter,Form1.mmo1);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.b1Click(Sender: TObject);&lt;br /&gt;var&lt;br /&gt;  Capture : TmyThread;&lt;br /&gt;begin&lt;br /&gt;  mmo1.Clear;&lt;br /&gt;&lt;br /&gt;  Capture := TmyThread.Create(False);&lt;br /&gt;  try&lt;br /&gt;    Capture.fCommand  := ed1.Text;&lt;br /&gt;    Capture.fParameter  := ed2.Text;&lt;br /&gt;    Capture.Resume;&lt;br /&gt;  finally&lt;br /&gt;&lt;br /&gt;  end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.b2Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  mmo1.Clear;&lt;br /&gt;  CaptureConsoleOutput(ed1.Text,ed2.Text,mmo1);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.&lt;/textarea&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3We1raKaSkTW6UpsimGlimpfPbqJrMiIEK38vf-BjsKTqOUCVBejZTbYhBo-1AUWisB5e0xtxB-D8HR_lskG_XVlS_qqhaI9vgb-zbWun22V1pNFcRpUIuAn1FwIng_aHdTQsKb0jhPUx/s1600/capture.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3We1raKaSkTW6UpsimGlimpfPbqJrMiIEK38vf-BjsKTqOUCVBejZTbYhBo-1AUWisB5e0xtxB-D8HR_lskG_XVlS_qqhaI9vgb-zbWun22V1pNFcRpUIuAn1FwIng_aHdTQsKb0jhPUx/s400/capture.JPG&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Download program full source &lt;a href=&quot;http://adf.ly/WTrUT&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI &lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/407637183433495086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/09/capture-console-output-realtime-delphi.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/407637183433495086'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/407637183433495086'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/09/capture-console-output-realtime-delphi.html' title='Capture Console Output Realtime Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3We1raKaSkTW6UpsimGlimpfPbqJrMiIEK38vf-BjsKTqOUCVBejZTbYhBo-1AUWisB5e0xtxB-D8HR_lskG_XVlS_qqhaI9vgb-zbWun22V1pNFcRpUIuAn1FwIng_aHdTQsKb0jhPUx/s72-c/capture.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-6465753864224645957</id><published>2013-09-04T14:05:00.003+07:00</published><updated>2013-09-04T14:06:09.161+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Form Full Screen Menutupi Taskbar Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Tambahkan 1 Form dan 1 Tombol, langsung copas saja kodenya.. :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, StdCtrls;&lt;br /&gt;&lt;br /&gt;{$J+} //writeable constants on&lt;br /&gt;const&lt;br /&gt;  rec: TRect = (Left:0; Top:0; Right:0; Bottom:0);&lt;br /&gt;  ws : TWindowState = wsNormal;&lt;br /&gt;{$J-} //writeable constants off &lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    btn1: TButton;&lt;br /&gt;    procedure btn1Click(Sender: TObject);&lt;br /&gt;    procedure FormCreate(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;procedure TForm1.btn1Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  Application.Terminate;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.FormCreate(Sender: TObject);&lt;br /&gt;var&lt;br /&gt;  r : TRect;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;  if BorderStyle &lt;&gt; bsNone then&lt;br /&gt;  begin&lt;br /&gt;    ws := WindowState;&lt;br /&gt;    rec:= BoundsRect;&lt;br /&gt;&lt;br /&gt;    BorderStyle := bsNone;&lt;br /&gt;    r := Screen.MonitorFromWindow(Handle).BoundsRect;&lt;br /&gt;    SetBounds(r.Left, r.Top, r.Right-r.Left, r.Bottom-r.Top) ;&lt;br /&gt;  end&lt;br /&gt;  else&lt;br /&gt;  begin&lt;br /&gt;    BorderStyle := bsSizeable;&lt;br /&gt;    if ws = wsMaximized then&lt;br /&gt;      WindowState := wsMaximized&lt;br /&gt;    else&lt;br /&gt;      SetBounds(rec.Left, rec.Top, rec.Right-rec.Left, rec.Bottom-rec.Top) ;&lt;br /&gt;  end;  &lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.&lt;/textarea&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/6465753864224645957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/09/form-full-screen-menutupi-taskbar-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/6465753864224645957'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/6465753864224645957'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/09/form-full-screen-menutupi-taskbar-delphi.html' title='Form Full Screen Menutupi Taskbar Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-6445450043495963178</id><published>2013-08-20T09:35:00.000+07:00</published><updated>2013-08-20T09:36:22.785+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Mengatur Volume TMediaplayer Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Mengatur volume pada komponen TMediaPlayer bawaan delphi&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, StdCtrls, ComCtrls, MPlayer, MMSystem;&lt;br /&gt;&lt;br /&gt;//--- tambah constanta disini untuk mengatur volume&lt;br /&gt;const&lt;br /&gt;// ---- buat loading volume ----&lt;br /&gt;   MCI_SETAUDIO = $0873;&lt;br /&gt;   MCI_DGV_SETAUDIO_VOLUME = $4002;&lt;br /&gt;   MCI_DGV_SETAUDIO_ITEM = $00800000;&lt;br /&gt;   MCI_DGV_SETAUDIO_VALUE = $01000000;&lt;br /&gt;   MCI_DGV_STATUS_VOLUME = $4019;  &lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    Button1: TButton;&lt;br /&gt;    TrackBar1: TTrackBar;&lt;br /&gt;    Label1: TLabel;&lt;br /&gt;    MediaPlayer1: TMediaPlayer;&lt;br /&gt;    OpenDialog1: TOpenDialog;&lt;br /&gt;    StatusBar1: TStatusBar;&lt;br /&gt;    procedure FormCreate(Sender: TObject);&lt;br /&gt;    procedure TrackBar1Change(Sender: TObject);&lt;br /&gt;    procedure Button1Click(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;// tambahkan &quot; type &quot; untuk atur volume&lt;br /&gt;type&lt;br /&gt;   MCI_DGV_SETAUDIO_PARMS = record // volume&lt;br /&gt;     dwCallback: DWORD;&lt;br /&gt;     dwItem: DWORD;&lt;br /&gt;     dwValue: DWORD;&lt;br /&gt;     dwOver: DWORD;&lt;br /&gt;     lpstrAlgorithm: PChar;&lt;br /&gt;     lpstrQuality: PChar;&lt;br /&gt;   end;&lt;br /&gt;&lt;br /&gt;// tambahkan &quot; type &quot; untuk atur volume&lt;br /&gt;type&lt;br /&gt;   MCI_STATUS_PARMS = record // volume&lt;br /&gt;     dwCallback: DWORD;&lt;br /&gt;     dwReturn: DWORD;&lt;br /&gt;     dwItem: DWORD;&lt;br /&gt;     dwTrack: DWORD;&lt;br /&gt;   end;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// prosedur set volume&lt;br /&gt;procedure MPSetVolume(MP:TMediaPlayer;Volume:Integer) ;&lt;br /&gt;var&lt;br /&gt;   p: MCI_DGV_SETAUDIO_PARMS;&lt;br /&gt;begin&lt;br /&gt;   p.dwCallback := 0;&lt;br /&gt;   p.dwItem := MCI_DGV_SETAUDIO_VOLUME;&lt;br /&gt;   p.dwValue := Volume;&lt;br /&gt;   p.dwOver := 0;&lt;br /&gt;   p.lpstrAlgorithm := nil;&lt;br /&gt;   p.lpstrQuality := nil;&lt;br /&gt;   mciSendCommand(MP.DeviceID, MCI_SETAUDIO, MCI_DGV_SETAUDIO_VALUE&lt;br /&gt;   or MCI_DGV_SETAUDIO_ITEM, Cardinal(@p)) ;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;// dapatkan Volume, range 0 - 1000&lt;br /&gt;function MPGetVolume(MP: TMediaPlayer): Integer;&lt;br /&gt;var&lt;br /&gt;   p: MCI_STATUS_PARMS;&lt;br /&gt;begin&lt;br /&gt;   p.dwCallback := 0;&lt;br /&gt;   p.dwItem := MCI_DGV_STATUS_VOLUME;&lt;br /&gt;   mciSendCommand(MP.DeviceID, MCI_STATUS, MCI_STATUS_ITEM, Cardinal(@p)) ;&lt;br /&gt;   Result := p.dwReturn;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;procedure TForm1.FormCreate(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  Label1.Caption :=&#39;0%&#39;;&lt;br /&gt;  TrackBar1.Position:=400;&lt;br /&gt;  MPGetVolume(MediaPlayer1);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.TrackBar1Change(Sender: TObject);&lt;br /&gt;var&lt;br /&gt;i:real;&lt;br /&gt;begin&lt;br /&gt;     i:=int(TrackBar1.Position/TrackBar1.Max*100);&lt;br /&gt;     Label1.Caption:=floattostr(i)+&#39;%&#39;;&lt;br /&gt;&lt;br /&gt;     MPSetVolume(MediaPlayer1,TrackBar1.Position);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.Button1Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  if OpenDialog1.Execute then&lt;br /&gt;  begin&lt;br /&gt;  StatusBar1.SimpleText:=OpenDialog1.FileName;&lt;br /&gt;  MediaPlayer1.Close;&lt;br /&gt;  MediaPlayer1.FileName:=OpenDialog1.FileName;&lt;br /&gt;  MediaPlayer1.Open;&lt;br /&gt;  end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hasil Screenshot :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbd17pgKAg9LBSMB4nMDzv-J2UiUXn0gB4AJvXCG2g5hGr25tx-XZM0j-DLuvzrnRbC5jx6_Ec8wLjyHUhE-MIAvSyN8wtxrjJhx76NK9b4EB3rR6oNV9BduK-4-ri2lWQF04ATN1HHtHf/s1600/mp3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbd17pgKAg9LBSMB4nMDzv-J2UiUXn0gB4AJvXCG2g5hGr25tx-XZM0j-DLuvzrnRbC5jx6_Ec8wLjyHUhE-MIAvSyN8wtxrjJhx76NK9b4EB3rR6oNV9BduK-4-ri2lWQF04ATN1HHtHf/s320/mp3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Download Source Code &lt;a href=&quot;http://adf.ly/UHTNW&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/6445450043495963178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/08/mengatur-volume-tmediaplayer-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/6445450043495963178'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/6445450043495963178'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/08/mengatur-volume-tmediaplayer-delphi.html' title='Mengatur Volume TMediaplayer Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbd17pgKAg9LBSMB4nMDzv-J2UiUXn0gB4AJvXCG2g5hGr25tx-XZM0j-DLuvzrnRbC5jx6_Ec8wLjyHUhE-MIAvSyN8wtxrjJhx76NK9b4EB3rR6oNV9BduK-4-ri2lWQF04ATN1HHtHf/s72-c/mp3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-1848967293908239675</id><published>2013-08-02T08:26:00.000+07:00</published><updated>2013-08-02T08:27:25.909+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Menghitung Umur Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Aplikasi sederhana untuk menghitung berapa umur kita sekarang, dengan memasukkan tanggal lahir.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, ComCtrls, StdCtrls, DateUtils;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    Edit1: TEdit;&lt;br /&gt;    DateTimePicker1: TDateTimePicker;&lt;br /&gt;    procedure DateTimePicker1Change(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function Umur(TglSekarang, TglLahir:TDate): string;&lt;br /&gt;var&lt;br /&gt;th,bl,hr,&lt;br /&gt;y1,m1,d1,&lt;br /&gt;y2,m2,d2: Word;&lt;br /&gt;begin&lt;br /&gt;Result:=&#39;&#39;;&lt;br /&gt;&lt;br /&gt;if TglLahir&gt;TglSekarang then&lt;br /&gt;Exit;&lt;br /&gt;&lt;br /&gt;DecodeDate(TglSekarang,y1,m1,d1);&lt;br /&gt;DecodeDate(TglLahir,y2,m2,d2);&lt;br /&gt;th:=y1-y2;&lt;br /&gt;&lt;br /&gt;if m1&lt;m2 then&lt;br /&gt;begin&lt;br /&gt;bl:=12-m2+m1;&lt;br /&gt;Dec(th);&lt;br /&gt;end else&lt;br /&gt;bl:=m1-m2;&lt;br /&gt;&lt;br /&gt;if d1&lt;d2 then&lt;br /&gt;begin&lt;br /&gt;hr:=DaysInAMonth(y2,m2)-d2+d1;&lt;br /&gt;Dec(bl);&lt;br /&gt;&lt;br /&gt;if bl&gt;11 then&lt;br /&gt;begin&lt;br /&gt;bl:=11;&lt;br /&gt;Dec(th);&lt;br /&gt;end;&lt;br /&gt;end&lt;br /&gt;else&lt;br /&gt;hr:=d1-d2;&lt;br /&gt;&lt;br /&gt;if th&gt;0 then&lt;br /&gt;Result:=Result+IntToStr(th)+&#39; tahun&#39;;&lt;br /&gt;&lt;br /&gt;if bl&gt;0 then&lt;br /&gt;begin&lt;br /&gt;if Result&gt;&#39;&#39; then Result:=Result+&#39;, &#39;;&lt;br /&gt;Result:=Result+IntToStr(bl)+&#39; bulan&#39;;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;if hr&gt;0 then&lt;br /&gt;begin&lt;br /&gt;if Result&gt;&#39;&#39; then Result:=Result+&#39;, &#39;;&lt;br /&gt;Result:=Result+IntToStr(hr)+&#39; hari.&#39;;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;if Result&gt;&#39;&#39; then&lt;br /&gt;Result:=&#39;Umur ... &#39;+Result;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;procedure TForm1.DateTimePicker1Change(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  Edit1.Text  := Umur(Now,DateTimePicker1.Date);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hasil Screenshot :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaEefW9mMRkcUS9w-UKVOPouODEpDdk4zm4UGV3n2AlXxHEOd8mgvhJ3zEumBpuZrBPrTrqxu2ktBqmHB75hlKLKSisbqsbP4axGgMwhTh6uFIhQx7QV7dpj4qqCO24jCSjOYxPaz3NPPC/s1600/umur.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;183&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaEefW9mMRkcUS9w-UKVOPouODEpDdk4zm4UGV3n2AlXxHEOd8mgvhJ3zEumBpuZrBPrTrqxu2ktBqmHB75hlKLKSisbqsbP4axGgMwhTh6uFIhQx7QV7dpj4qqCO24jCSjOYxPaz3NPPC/s400/umur.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Download Program + Source &lt;a href=&quot;http://adf.ly/TGvGr&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/1848967293908239675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/08/menghitung-umur-delphi.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/1848967293908239675'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/1848967293908239675'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/08/menghitung-umur-delphi.html' title='Menghitung Umur Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaEefW9mMRkcUS9w-UKVOPouODEpDdk4zm4UGV3n2AlXxHEOd8mgvhJ3zEumBpuZrBPrTrqxu2ktBqmHB75hlKLKSisbqsbP4axGgMwhTh6uFIhQx7QV7dpj4qqCO24jCSjOYxPaz3NPPC/s72-c/umur.JPG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-1713370769149935745</id><published>2013-07-29T12:51:00.000+07:00</published><updated>2013-07-29T12:52:07.052+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Form tidak bisa di geser Delphi</title><content type='html'>Form default ada title bar nya, tapi tidak bisa di geser / di drag&lt;br /&gt;
&lt;br /&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt; procedure WMSysCommand(var Msg: TWMSysCommand); message WM_SYSCOMMAND;&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;procedure TForm1.WMSysCommand(var Msg: TWMSysCommand);&lt;br /&gt;begin&lt;br /&gt; if ((msg.CmdType and $FFF0) = SC_MOVE) then begin msg.Result:=0;&lt;br /&gt; exit;&lt;br /&gt; end;&lt;br /&gt; inherited;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/1713370769149935745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/07/form-tidak-bisa-di-geser-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/1713370769149935745'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/1713370769149935745'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/07/form-tidak-bisa-di-geser-delphi.html' title='Form tidak bisa di geser Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-5827510138423847857</id><published>2013-07-25T15:34:00.000+07:00</published><updated>2013-07-25T15:40:59.218+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Membuat TEdit Rata Tengah dan Kanan Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;

interface&lt;br /&gt;

uses&lt;br /&gt;
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;
  Dialogs, StdCtrls;&lt;br /&gt;

type&lt;br /&gt;
  TForm1 = class(TForm)&lt;br /&gt;
    Edit1: TEdit;&lt;br /&gt;
    Edit2: TEdit;&lt;br /&gt;
  procedure RightEdit(e:TEdit);&lt;br /&gt;
  procedure CenterEdit(e:TEdit);&lt;br /&gt;
    procedure FormCreate(Sender: TObject);&lt;br /&gt;
  private&lt;br /&gt;
    { Private declarations }&lt;br /&gt;
  public&lt;br /&gt;
    { Public declarations }&lt;br /&gt;
  end;&lt;br /&gt;

var&lt;br /&gt;
  Form1: TForm1;&lt;br /&gt;

implementation&lt;br /&gt;

{$R *.dfm}&lt;br /&gt;

{ TForm1 }&lt;br /&gt;

procedure TForm1.CenterEdit(e: TEdit);
begin
SetWindowLong(e.Handle,GWL_STYLE,GetWindowLong(e.Handle,GWL_STYLE) or ES_CENTER);
end;

procedure TForm1.RightEdit(e: TEdit);
begin
SetWindowLong(e.Handle,GWL_STYLE,GetWindowLong(e.Handle,GWL_STYLE) or ES_RIGHT);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  CenterEdit(Edit1);
  RightEdit(Edit2);
end;

end.
&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Screen shot :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQP5SlnEw2Mt0ShkWjetK_uTIlCqE9m5cYh01py1X3QmC_Tsz1-2bUk5k1904cYnW69lWRCu0iU9SGp-nV8g4fMDQ_1isJTauDuGL5fvHOzgjHlwnJVovNbAsC-uGN2Ooyh9H9Gkv_WUWW/s1600/EditText+Aligment.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;251&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQP5SlnEw2Mt0ShkWjetK_uTIlCqE9m5cYh01py1X3QmC_Tsz1-2bUk5k1904cYnW69lWRCu0iU9SGp-nV8g4fMDQ_1isJTauDuGL5fvHOzgjHlwnJVovNbAsC-uGN2Ooyh9H9Gkv_WUWW/s400/EditText+Aligment.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/5827510138423847857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/07/membuat-tedit-rata-tengah-dan-kanan.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/5827510138423847857'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/5827510138423847857'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/07/membuat-tedit-rata-tengah-dan-kanan.html' title='Membuat TEdit Rata Tengah dan Kanan Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQP5SlnEw2Mt0ShkWjetK_uTIlCqE9m5cYh01py1X3QmC_Tsz1-2bUk5k1904cYnW69lWRCu0iU9SGp-nV8g4fMDQ_1isJTauDuGL5fvHOzgjHlwnJVovNbAsC-uGN2Ooyh9H9Gkv_WUWW/s72-c/EditText+Aligment.jpg" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-2903161191338217540</id><published>2013-07-18T13:21:00.001+07:00</published><updated>2013-07-18T13:21:54.398+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Button dalam Edit Delphi</title><content type='html'>Tambahkan 1 BitButton dan 1 Edit seperti gambar berikut&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyI66Rll13gELGOZNesliNsEzJ30679g2SQWGO_zJtR3Uz15A4opT7WrYkKAQKN3higH9tT6p2h6H9J8mAaiKKpS2F9BhwI3qS3JTZz9G-lln-8SyjG4RU0Nfl0Rq8tCnHOKQwLLuJ_BDq/s1600/ButtonTEdit1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyI66Rll13gELGOZNesliNsEzJ30679g2SQWGO_zJtR3Uz15A4opT7WrYkKAQKN3higH9tT6p2h6H9J8mAaiKKpS2F9BhwI3qS3JTZz9G-lln-8SyjG4RU0Nfl0Rq8tCnHOKQwLLuJ_BDq/s400/ButtonTEdit1.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Source code lengkap :&lt;br /&gt;
&lt;br /&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, StdCtrls, Buttons;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    Edit1: TEdit;&lt;br /&gt;    BitBtn1: TBitBtn;&lt;br /&gt;    procedure BitBtn1Click(Sender: TObject);&lt;br /&gt;    procedure FormCreate(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;procedure TForm1.BitBtn1Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  Edit1.Clear;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.FormCreate(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt; SendMessage(Edit1.Handle, EM_SETMARGINS, EC_RIGHTMARGIN, makelong(0,0));&lt;br /&gt; BitBtn1.Height:= Edit1.ClientHeight;&lt;br /&gt; BitBtn1.Parent:= Edit1;&lt;br /&gt; BitBtn1.Align:= alRight;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.
&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
Hasil screenshot :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJrpdnZ0KX_l1zyp2qitT0izC82AsHOYSnNtyFZTkrmmnzBQCv392c6xSDhvgzk487_MvnA2H8P-aVz_zXBppWI9iFcIvbmlThAZAIljUhXoGv262M_fi6tNmyUNTwITzmlL8hAWjliukY/s1600/ButtonTEdit2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJrpdnZ0KX_l1zyp2qitT0izC82AsHOYSnNtyFZTkrmmnzBQCv392c6xSDhvgzk487_MvnA2H8P-aVz_zXBppWI9iFcIvbmlThAZAIljUhXoGv262M_fi6tNmyUNTwITzmlL8hAWjliukY/s400/ButtonTEdit2.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/2903161191338217540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/07/button-dalam-edit-delphi.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/2903161191338217540'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/2903161191338217540'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/07/button-dalam-edit-delphi.html' title='Button dalam Edit Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyI66Rll13gELGOZNesliNsEzJ30679g2SQWGO_zJtR3Uz15A4opT7WrYkKAQKN3higH9tT6p2h6H9J8mAaiKKpS2F9BhwI3qS3JTZz9G-lln-8SyjG4RU0Nfl0Rq8tCnHOKQwLLuJ_BDq/s72-c/ButtonTEdit1.JPG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-4315778503479072361</id><published>2013-07-17T09:08:00.000+07:00</published><updated>2013-07-17T09:09:06.229+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Menghitung bilangan berpangkat bulat delphi</title><content type='html'>Program sederhana untuk menghitung bilangan berpangkat bulat dengan delphi.. semoga bermanfaat.. :D&lt;br /&gt;
&lt;br /&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, StdCtrls;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    Edit1: TEdit;&lt;br /&gt;    Edit2: TEdit;&lt;br /&gt;    Edit3: TEdit;&lt;br /&gt;    BHitung: TButton;&lt;br /&gt;    Label1: TLabel;&lt;br /&gt;    Label2: TLabel;&lt;br /&gt;    Label3: TLabel;&lt;br /&gt;    procedure BHitungClick(Sender: TObject);&lt;br /&gt;    procedure FormCreate(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;function PangkatBilangan(a:Double; b : Integer) : Double;&lt;br /&gt;var i : integer; temp : Double;&lt;br /&gt;begin&lt;br /&gt;temp := 1;&lt;br /&gt;for i := 1 to b do&lt;br /&gt;begin&lt;br /&gt;temp := temp * a;&lt;br /&gt;end;&lt;br /&gt;PangkatBilangan := temp;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;procedure TForm1.BHitungClick(Sender: TObject);&lt;br /&gt;var angka   : Double;&lt;br /&gt;    pangkat : Integer;&lt;br /&gt;begin&lt;br /&gt;angka   := StrToFloat(Edit1.Text);&lt;br /&gt;pangkat := StrToInt(Edit2.Text);&lt;br /&gt;&lt;br /&gt;Edit3.Text := FloatToStr(PangkatBilangan(angka,pangkat));&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;procedure TForm1.FormCreate(Sender: TObject);&lt;br /&gt;var x : Integer;&lt;br /&gt;begin&lt;br /&gt;  for x:=0 to ComponentCount-1 do&lt;br /&gt;  begin&lt;br /&gt;    if (Components[x] is TEdit) then&lt;br /&gt;    begin&lt;br /&gt;      (Components[x] as TEdit).Clear;&lt;br /&gt;    end;&lt;br /&gt;  end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.
&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
Hasil screenshot program :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGltaJXzFWuMfy3WEboZz5hCnaPWB6imsyFLQIEN5ay9Dy22Wwl0CvCp-8s6J5eblWfCLZ74Mnyr1B4ZqcLlDtTDwDHdPZ-sJc5dYyRQXzdR77TjSTIVRMZFcipkRJPh4QMQXqInWC7UQ2/s1600/BilPangkat.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGltaJXzFWuMfy3WEboZz5hCnaPWB6imsyFLQIEN5ay9Dy22Wwl0CvCp-8s6J5eblWfCLZ74Mnyr1B4ZqcLlDtTDwDHdPZ-sJc5dYyRQXzdR77TjSTIVRMZFcipkRJPh4QMQXqInWC7UQ2/s320/BilPangkat.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span id=&quot;goog_1629066378&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1629066379&quot;&gt;&lt;/span&gt;&lt;br /&gt;
Download Program + Source &lt;a href=&quot;http://adf.ly/SGMXa&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/4315778503479072361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/07/menghitung-bilangan-berpangkat-bulat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/4315778503479072361'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/4315778503479072361'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/07/menghitung-bilangan-berpangkat-bulat.html' title='Menghitung bilangan berpangkat bulat delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGltaJXzFWuMfy3WEboZz5hCnaPWB6imsyFLQIEN5ay9Dy22Wwl0CvCp-8s6J5eblWfCLZ74Mnyr1B4ZqcLlDtTDwDHdPZ-sJc5dYyRQXzdR77TjSTIVRMZFcipkRJPh4QMQXqInWC7UQ2/s72-c/BilPangkat.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-3426713288532951980</id><published>2013-07-15T13:49:00.010+07:00</published><updated>2021-12-30T10:13:39.803+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Load Database ke ListView Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Berikut ini adalah contoh program sederhana, bagaimana cara meload database dan ditampilkan ke listview..&lt;br /&gt;
oke langsung saja.. :D&lt;br /&gt;
&lt;br /&gt;
buatlah desain form kira2 seperti gambar berikut :&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIc1cVXmhOaL8Ko93LWxmgH_-gi32uecrC3WWVFQjPgnhkaSMzs_f5D1hkZCXfHChq4c5g9AeUN4YekT1NdwAJ1gUJOcJtV7lq9qzBzN-CHj11pBdjgq2JpY1u0p-th8qnfdWlXZi2oMVY/s1600/Load+Database+ke+Listview2.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIc1cVXmhOaL8Ko93LWxmgH_-gi32uecrC3WWVFQjPgnhkaSMzs_f5D1hkZCXfHChq4c5g9AeUN4YekT1NdwAJ1gUJOcJtV7lq9qzBzN-CHj11pBdjgq2JpY1u0p-th8qnfdWlXZi2oMVY/s400/Load+Database+ke+Listview2.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Berikut source code nya lengkap :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
  
&lt;pre&gt;&lt;code class=&quot;language-plaintext&quot;&gt;
unit Unit1;interfaceuses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, ComCtrls, Grids, DBGrids, XPMan, StdCtrls, ExtCtrls;typeTCustomSortStyle = (cssAlphaNum, cssNumeric, cssDateTime);  TForm1 = class(TForm)    DBGrid1: TDBGrid;    ListView1: TListView;    Button1: TButton;    XPManifest1: TXPManifest;    Button2: TButton;    StatusBar1: TStatusBar;    Timer1: TTimer;    procedure Button2Click(Sender: TObject);    procedure Button1Click(Sender: TObject);    procedure ListView1ColumnClick(Sender: TObject; Column: TListColumn);    procedure Timer1Timer(Sender: TObject);  private    { Private declarations }  public    { Public declarations }  end;var  Form1: TForm1;  { variable to hold the sort style }  LvSortStyle: TCustomSortStyle;  { array to hold the sort order }  LvSortOrder: array[0..4] of Boolean;implementationuses Unit2;{$R *.dfm}function CustomSortProc(Item1, Item2: TListItem; SortColumn: Integer): Integer; stdcall;var  s1, s2: string;  i1, i2: Integer;  r1, r2: Boolean;  d1, d2: TDateTime;  { Helper functions }  function IsValidNumber(AString : string; var AInteger : Integer): Boolean;  var    Code: Integer;  begin    Val(AString, AInteger, Code);    Result := (Code = 0);  end;  function IsValidDate(AString : string; var ADateTime : TDateTime): Boolean;  begin    Result := True;    try      ADateTime := StrToDateTime(AString);    except      ADateTime := 0;      Result := False;    end;  end;  function CompareDates(dt1, dt2: TDateTime): Integer;  begin    if (dt1 &gt; dt2) then Result := 1    else      if (dt1 = dt2) then Result := 0    else      Result := -1;  end;  function CompareNumeric(AInt1, AInt2: Integer): Integer;  begin    if AInt1 &gt; AInt2 then Result := 1    else      if AInt1 = AInt2 then Result := 0    else      Result := -1;  end;begin  Result := 0;  if (Item1 = nil) or (Item2 = nil) then Exit;  case SortColumn of    -1 :    { Compare Captions }    begin      s1 := Item1.Caption;      s2 := Item2.Caption;    end;    else    { Compare Subitems }    begin      s1 := &#39;&#39;;      s2 := &#39;&#39;;      { Check Range }      if (SortColumn &lt; Item1.SubItems.Count) then        s1 := Item1.SubItems[SortColumn];      if (SortColumn &lt; Item2.SubItems.Count) then        s2 := Item2.SubItems[SortColumn]    end;  end;  { Sort styles }  case LvSortStyle of    cssAlphaNum : Result := lstrcmp(PChar(s1), PChar(s2));    cssNumeric  : begin                    r1 := IsValidNumber(s1, i1);                    r2 := IsValidNumber(s2, i2);                    Result := ord(r1 or r2);                    if Result &lt;&gt; 0 then                      Result := CompareNumeric(i1, i2);                  end;    cssDateTime : begin                    r1 := IsValidDate(s1, d1);                    r2 := IsValidDate(s2, d2);                    Result := ord(r1 or r2);                    if Result &lt;&gt; 0 then                      Result := CompareDates(d1, d2);                  end;  end;  { Sort direction }  if LvSortOrder[SortColumn + 1] then    Result := - Result;end;procedure TForm1.Button1Click(Sender: TObject);vari  : Integer;LC : TListColumn;LI : TListItem;beginButton2Click(Sender);// load kolomfor i:= 0 to DM.tb.FieldCount-1 dobeginLC := self.ListView1.Columns.Add;LC.Caption := UpperCase(DM.tb.Fields [i]. FieldName);LC.Width   := 100;end;// load recordDM.tb.First;while not DM.tb.Eof dobeginLI := self.ListView1.Items.Add;LI.Caption := DM.tb.Fields [0]. AsString;for i:= 1 to DM.tb.FieldCount-1 dobeginLI.SubItems.Add (DM.tb.Fields [i]. AsString);end;DM.tb.Next;end;end;procedure TForm1.Button2Click(Sender: TObject);var i:integer;beginfor i := ListView1.Items.Count - 1 downto 0 doListView1.Items.Delete(i);for i := ListView1.Columns.Count - 1 downto 0 doListView1.Columns[i].Destroy;end;procedure TForm1.ListView1ColumnClick(Sender: TObject; Column: TListColumn);begin  case Column.Index of    0 : LvSortStyle := cssNumeric;    1 : LvSortStyle := cssAlphaNum;    2 : LvSortStyle := cssAlphaNum;  end;  { Call the CustomSort method }  ListView1.CustomSort(@CustomSortProc, Column.Index -1);  listview1.Column[1];  { Set the sort order for the column}  LvSortOrder[Column.Index] := not LvSortOrder[Column.Index];end;procedure TForm1.Timer1Timer(Sender: TObject);var s : string;begins:=&#39;Untuk mensortir klik pada kolom&#39;;if statusbar1.Panels[0].Text = s then  statusbar1.Panels[0].Text:=&#39;&#39;else  statusbar1.Panels[0].Text:=s;end;end.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hasil screen shot program :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFKLMIj_1EkbL5DphNIGIWTWBvf9912Z482XowcGmVENKkZyYviC0jbuWz78qNPnMyr1xQ7xF4v-pfZt38JECzQBn93tKz9xwp6AgiSPcDtS8S2FljjQWxog4dMxgJZabPMgyrYTZ3CVov/s1600/Load+Database+ke+Listview.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFKLMIj_1EkbL5DphNIGIWTWBvf9912Z482XowcGmVENKkZyYviC0jbuWz78qNPnMyr1xQ7xF4v-pfZt38JECzQBn93tKz9xwp6AgiSPcDtS8S2FljjQWxog4dMxgJZabPMgyrYTZ3CVov/s400/Load+Database+ke+Listview.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Program dan source code bisa di download &lt;a href=&quot;http://adf.ly/S8vp8&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/3426713288532951980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/07/load-database-ke-listview-delphi.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/3426713288532951980'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/3426713288532951980'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/07/load-database-ke-listview-delphi.html' title='Load Database ke ListView Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIc1cVXmhOaL8Ko93LWxmgH_-gi32uecrC3WWVFQjPgnhkaSMzs_f5D1hkZCXfHChq4c5g9AeUN4YekT1NdwAJ1gUJOcJtV7lq9qzBzN-CHj11pBdjgq2JpY1u0p-th8qnfdWlXZi2oMVY/s72-c/Load+Database+ke+Listview2.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-2507151356236215637</id><published>2013-06-21T15:06:00.000+07:00</published><updated>2013-06-21T15:11:04.981+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Firebird"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Simpan dan Load File dari Database Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Program sederhana ini merupakan contoh cara menyimpan segala macam file berformat sembarang ke dalam database, file bisa diload / diambil lagi dari database kemudian disimpan ke hardisk. Pada contoh program ini ane menggunakan database Firebird 2.0 &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, DB, Grids, DBGrids, IBCustomDataSet, IBDatabase, StdCtrls, ShellAPI;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    db: TIBDatabase;&lt;br /&gt;    tr: TIBTransaction;&lt;br /&gt;    DBGrid1: TDBGrid;&lt;br /&gt;    ds: TDataSource;&lt;br /&gt;    Button1: TButton;&lt;br /&gt;    Button2: TButton;&lt;br /&gt;    OD: TOpenDialog;&lt;br /&gt;    Memo1: TMemo;&lt;br /&gt;    Button3: TButton;&lt;br /&gt;    tb: TIBDataSet;&lt;br /&gt;    tbID: TIntegerField;&lt;br /&gt;    tbNAMAFILE: TIBStringField;&lt;br /&gt;    tbFILES: TBlobField;&lt;br /&gt;    tbUKURAN: TIntegerField;&lt;br /&gt;    procedure Button1Click(Sender: TObject);&lt;br /&gt;    procedure Button2Click(Sender: TObject);&lt;br /&gt;    procedure FormCreate(Sender: TObject);&lt;br /&gt;    procedure Button3Click(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;function GetSize(const AFile:String):Int64;&lt;br /&gt;begin&lt;br /&gt;//  Result := 0;&lt;br /&gt;  with TFileStream.Create(AFile, fmOpenRead) do&lt;br /&gt;  begin&lt;br /&gt;    try&lt;br /&gt;      Result := Size;&lt;br /&gt;    finally&lt;br /&gt;      Free;&lt;br /&gt;    end;&lt;br /&gt;  end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.Button1Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;if OD.Execute then&lt;br /&gt;BEGIN&lt;br /&gt;  tb.Insert;&lt;br /&gt;  tbNAMAFILE.AsString := ExtractFileName(OD.FileName);&lt;br /&gt;  tbFILES.LoadFromFile(OD.FileName);&lt;br /&gt;  tbUKURAN.AsInteger  := GetSize(OD.FileName);&lt;br /&gt;  tb.Post;&lt;br /&gt;END;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.Button2Click(Sender: TObject);&lt;br /&gt;var&lt;br /&gt;AStrm : TMemoryStream;&lt;br /&gt;d,m,y : Word;&lt;br /&gt;s     : string;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;if tb.RecordCount = 0 then&lt;br /&gt;begin&lt;br /&gt;MessageDlg(&#39;Data Kosong&#39;,mtInformation,[mbOK],0);&lt;br /&gt;Exit;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;if MessageDlg(&#39;Load File ?&#39;,mtConfirmation,[mbYes,mbNo],0)=mrYes then&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;DecodeDate(Date(),y,m,d);&lt;br /&gt;s := IntToStr(d)+IntToStr(m)+IntToStr(y)+&#39;-&#39;;&lt;br /&gt;&lt;br /&gt;//download file, jika belum ada folder DOWNLOAD maka buat Foldernya dulu&lt;br /&gt;if not DirectoryExists(ExtractFilePath(ParamStr(0))+&#39;Download&#39;) then&lt;br /&gt;      ForceDirectories(ExtractFilePath(ParamStr(0))+&#39;Download&#39;);&lt;br /&gt;&lt;br /&gt;//mengambil file dari database dan disimpan pada MemoryStream&lt;br /&gt;AStrm:=TMemoryStream.Create;&lt;br /&gt;TBlobField(tb.FieldByName(&#39;FILES&#39;)).SaveToStream(AStrm);&lt;br /&gt;&lt;br /&gt;// jika file sudah ada, maka buat file dengan nama ada tanggalnya&lt;br /&gt;if FileExists(ExtractFilePath(ParamStr(0))+&#39;Download\&#39;+tbNAMAFILE.AsString+&#39;&#39;) then&lt;br /&gt;begin&lt;br /&gt;     AStrm.SaveToFile(ExtractFilePath(ParamStr(0))+&#39;Download\&#39;+s+tbNAMAFILE.AsString+&#39;&#39;);&lt;br /&gt;end&lt;br /&gt;else&lt;br /&gt;     AStrm.SaveToFile(ExtractFilePath(ParamStr(0))+&#39;Download\&#39;+tbNAMAFILE.AsString+&#39;&#39;);&lt;br /&gt;     AStrm.Free;&lt;br /&gt;&lt;br /&gt;MessageDlg(&#39;Download Berhasil...!!!&#39;+#13+&#39;File Sudah Tersimpan di Folder &#39;+&lt;br /&gt;#13+ExtractFilePath(ParamStr(0))+&#39;Download&#39;,mtInformation,[mbOK],0);&lt;br /&gt;&lt;br /&gt;//buka folder download&lt;br /&gt;ShellExecute(handle, &#39;Open&#39;,PChar(ExtractFilePath(ParamStr(0))+&#39;Download&#39;), nil, nil, SW_SHOWNORMAL);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.Button3Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;if tb.RecordCount = 0 then&lt;br /&gt;begin&lt;br /&gt;MessageDlg(&#39;Data Kosong&#39;,mtInformation,[mbOK],0);&lt;br /&gt;Exit;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;  if MessageDlg(&#39;Hapus File ?&#39;,mtConfirmation,[mbYes,mbNo],0)=mrYes then&lt;br /&gt;    tb.Delete;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.FormCreate(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;if db.Connected = True then db.Connected:=False;&lt;br /&gt;&lt;br /&gt;  db.DatabaseName :=&#39;&#39;;&lt;br /&gt;  if db.DatabaseName = &#39;&#39; then&lt;br /&gt;      db.DatabaseName := ExtractFilePath(ParamStr(0))+&#39;DATA.FDB&#39;;&lt;br /&gt;      db.Open;&lt;br /&gt;      tb.Open;  &lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.
&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hasil Screen Shot Program :&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-CJzK92I0llmKmTzETtXcZwQqAhf9evml6GaGOTCiYyslJVWJyzPLqziKrwVCY3NjcQPy9joPbIIRQZe-5jRRPEd_IAi_RwjjwYpHtsWYtrlPU4uywbRxSMunt-gQIf7Fn8zrlfJqznW/s1600/saveloadfile.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-CJzK92I0llmKmTzETtXcZwQqAhf9evml6GaGOTCiYyslJVWJyzPLqziKrwVCY3NjcQPy9joPbIIRQZe-5jRRPEd_IAi_RwjjwYpHtsWYtrlPU4uywbRxSMunt-gQIf7Fn8zrlfJqznW/s400/saveloadfile.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Program dan Source Code bisa didownload &lt;a href=&quot;http://adf.ly/Qrt5Z&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISNI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/2507151356236215637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/06/simpan-dan-load-file-dari-database.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/2507151356236215637'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/2507151356236215637'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/06/simpan-dan-load-file-dari-database.html' title='Simpan dan Load File dari Database Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-CJzK92I0llmKmTzETtXcZwQqAhf9evml6GaGOTCiYyslJVWJyzPLqziKrwVCY3NjcQPy9joPbIIRQZe-5jRRPEd_IAi_RwjjwYpHtsWYtrlPU4uywbRxSMunt-gQIf7Fn8zrlfJqznW/s72-c/saveloadfile.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-2523917685868743879</id><published>2013-06-17T10:43:00.000+07:00</published><updated>2013-06-17T10:43:28.905+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Cek Ukuran File Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Program sederhana dari delphi untuk mengecek ukuran file.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, StdCtrls, Buttons;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TForm1 = class(TForm)&lt;br /&gt;    OD: TOpenDialog;&lt;br /&gt;    BitBtn1: TBitBtn;&lt;br /&gt;    Label1: TLabel;&lt;br /&gt;    Edit1: TEdit;&lt;br /&gt;    Label2: TLabel;&lt;br /&gt;    procedure BitBtn1Click(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  Form1: TForm1;&lt;br /&gt;  nilai,hasil: Double;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;function GetSize(const AFile:String):Int64;&lt;br /&gt;begin&lt;br /&gt;  Result := 0;&lt;br /&gt;  with TFileStream.Create(AFile, fmOpenRead) do&lt;br /&gt;  begin&lt;br /&gt;    try&lt;br /&gt;      Result := Size;&lt;br /&gt;    finally&lt;br /&gt;      Free;&lt;br /&gt;    end;&lt;br /&gt;  end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TForm1.BitBtn1Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;if OD.Execute then Edit1.Text := IntToStr(GetSize(OD.FileName));&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end.
&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hasil screenshot :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWxUnU9Sg5napOqdvaxXt1ZkXd8-6NiA5HCOQpGPSzO7IeCLcbUJ1KdlXHX9-m4vsJXsxvP0LcGHr-2F30gJvg7Ycwgaqv6L9tHkerl5xfqKySjz8a9xBnZVstcvVTNLMdniVW5lG2IWTu/s1600/cek_ukuran_file.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWxUnU9Sg5napOqdvaxXt1ZkXd8-6NiA5HCOQpGPSzO7IeCLcbUJ1KdlXHX9-m4vsJXsxvP0LcGHr-2F30gJvg7Ycwgaqv6L9tHkerl5xfqKySjz8a9xBnZVstcvVTNLMdniVW5lG2IWTu/s320/cek_ukuran_file.jpg&quot; width=&quot;320&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Program dan Source Code dapat didownload &lt;a href=&quot;http://adf.ly/QduLI&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/2523917685868743879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/06/cek-ukuran-file-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/2523917685868743879'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/2523917685868743879'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/06/cek-ukuran-file-delphi.html' title='Cek Ukuran File Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWxUnU9Sg5napOqdvaxXt1ZkXd8-6NiA5HCOQpGPSzO7IeCLcbUJ1KdlXHX9-m4vsJXsxvP0LcGHr-2F30gJvg7Ycwgaqv6L9tHkerl5xfqKySjz8a9xBnZVstcvVTNLMdniVW5lG2IWTu/s72-c/cek_ukuran_file.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-4521193311878567832</id><published>2013-05-29T15:41:00.000+07:00</published><updated>2013-05-29T15:42:35.329+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Menggunakan Fast Report Secara Runtime</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada contoh yang ane pakai adalah delphi 2007 dan Fast Report 4.12.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Untuk databasenya ane pakai Ms. Access. Langsung sajalah... :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Recompile Fast Report sesuaikan dengan versi delphi yang dipakai.&lt;br /&gt;
contoh seperti gambar berikut :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi7N1srpe_fgDu70Jmq9645zRcLBVbaIgR6FSPsvRQwc0SoVV_63yMcYPJmBdBk9jBQ012vW9cSKSUkDIgW3lVU4JK8lxnsyqsWC_r19A7bVafOb_tzM4Lcty2rnS0MXVmEvVcwis_cfXm/s1600/recompile.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi7N1srpe_fgDu70Jmq9645zRcLBVbaIgR6FSPsvRQwc0SoVV_63yMcYPJmBdBk9jBQ012vW9cSKSUkDIgW3lVU4JK8lxnsyqsWC_r19A7bVafOb_tzM4Lcty2rnS0MXVmEvVcwis_cfXm/s400/recompile.jpg&quot; width=&quot;308&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Setelah tercompile akan terbentuk folder LibD11 (Delphi2007), nah didalam folder itu berisi paket-paket komponen fast report yang nanti akan dipakai.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Tambahkan library path pada delphi, pada contoh :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&quot;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;C:\Program Files\CodeGear\RAD Studio\5.0\FastReport 4.12\LibD11&lt;/b&gt;&lt;/span&gt;&quot;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2sU26QqbO-pVvGUK6h3VobdaxXXGz1Le3XKwzTzsS01pppUJTJ2X-cRcp4EqKDTSqjyVmmnZOV0XBJq-FpaqVDx2Rm8Y3PjFa7nkS7CDcBQB67e2l0ErzoDOYWL503zx6oxsvlIAmdBAV/s1600/library+path.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2sU26QqbO-pVvGUK6h3VobdaxXXGz1Le3XKwzTzsS01pppUJTJ2X-cRcp4EqKDTSqjyVmmnZOV0XBJq-FpaqVDx2Rm8Y3PjFa7nkS7CDcBQB67e2l0ErzoDOYWL503zx6oxsvlIAmdBAV/s400/library+path.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Compile file-file berikut :&amp;nbsp;&amp;nbsp; tanda (*) merupakan versi dari delphi yang dipakai.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;fs*.dpk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - FastScript, main package&lt;/li&gt;
&lt;li&gt;fsDB*.dpk&amp;nbsp;&amp;nbsp; - FastScript, DB classes and controls&lt;/li&gt;
&lt;li&gt;fsBDE*.dpk&amp;nbsp; - FastScript, BDE components&lt;/li&gt;
&lt;li&gt;fsADO*.dpk&amp;nbsp; - FastScript, ADO components&lt;/li&gt;
&lt;li&gt;fsIBX*.dpk&amp;nbsp; - FastScript, IBX components&amp;nbsp;&lt;/li&gt;
&lt;li&gt;fsTee*.dpk&amp;nbsp; - FastScript, TeeChart components&amp;nbsp;&lt;/li&gt;
&lt;li&gt;frx*.dpk&amp;nbsp;&amp;nbsp;&amp;nbsp; - FastReport, main package&lt;/li&gt;
&lt;li&gt;frxDB*.dpk&amp;nbsp; - FastReport, TDataSet wrapper (TfrxDBDataSet)&lt;/li&gt;
&lt;li&gt;frxIBO*.dpk - FastReport, IB_Objects wrapper (TfrxIBODataSet)&lt;/li&gt;
&lt;li&gt;frxBDE*.dpk - FastReport, end-user BDE components&lt;/li&gt;
&lt;li&gt;frxADO*.dpk - FastReport, end-user ADO components&lt;/li&gt;
&lt;li&gt;frxIBX*.dpk - FastReport, end-user IBX components&lt;/li&gt;
&lt;li&gt;frxDBX*.dpk - FastReport, end-user DBX components&lt;/li&gt;
&lt;li&gt;frxTee*.dpk - FastReport, TeeChart components&lt;/li&gt;
&lt;li&gt;frxe*.dpk&amp;nbsp;&amp;nbsp; - FastReport, export filters&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Sekarang kita buat program sederhana, buatlah kira-kira seperti gambar berikut :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTK9wKRIRz5EP53YaMKztPM41BGrZhYBkm4p2o19hQ_ZjkiTdd8eitoHlVyhPxGxnky0dBVhxUZjVV95DlHD5advBj5wfuPVpHX0rH__vsPBnWWgw6WLeka4YebvtKX5lEeJFRuFG0ywtF/s1600/design.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;352&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTK9wKRIRz5EP53YaMKztPM41BGrZhYBkm4p2o19hQ_ZjkiTdd8eitoHlVyhPxGxnky0dBVhxUZjVV95DlHD5advBj5wfuPVpHX0rH__vsPBnWWgw6WLeka4YebvtKX5lEeJFRuFG0ywtF/s400/design.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1 ADOConnection&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1 ADOTable&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
3 Button&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Tambahkan Uses : &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;frxClass, frxDBSet, frxDesgn&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;interface&lt;br /&gt;
uses&lt;br /&gt;
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms, Dialogs, frxClass, frxDBSet, frxDesgn, StdCtrls, DB, ADODB; &lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Tambahkan variabel : &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;dbPath, frx, frxDB&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;var&lt;br /&gt;
  Form1  : TForm1;
  dbPath : string;
  frx    : TfrxReport;
  frxDB  : TfrxDBDataset;&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Berikut Source Code untuk tombol &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Design Report, Preview Report dan Print Report&lt;/span&gt;&lt;/b&gt; :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;// Tombol Design Report&lt;br /&gt;
procedure TForm1.Button1Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
  frxDB.DataSet  := ADOTable1;&lt;br /&gt;
  frxDB.UserName := &#39;mahasiswa&#39;;&lt;br /&gt;
  frx.DesignReport;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
// Tombol Preview Report&lt;br /&gt;
procedure TForm1.Button2Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
  frxDB.DataSet  := ADOTable1;&lt;br /&gt;
  frxDB.UserName := &#39;mahasiswa&#39;;&lt;br /&gt;
  frx.LoadFromFile(ExtractFilePath(ParamStr(0))+&#39;Reports\cobacoba.fr3&#39;);&lt;br /&gt;
  frx.ShowReport;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
// Tombol Print Report&lt;br /&gt;
procedure TForm1.Button3Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
  frxDB.DataSet  := ADOTable1;&lt;br /&gt;
  frxDB.UserName := &#39;mahasiswa&#39;;&lt;br /&gt;
  frx.LoadFromFile(ExtractFilePath(ParamStr(0))+&#39;Reports\cobacoba.fr3&#39;);&lt;br /&gt;
  frx.PrepareReport;&lt;br /&gt;
  frx.Print;&lt;br /&gt;
end;
&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Full Source Code&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit Unit1;&lt;br /&gt;
interface&lt;br /&gt;
uses&lt;br /&gt;
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms,Dialogs, frxClass, frxDBSet, frxDesgn, StdCtrls, DB, ADODB;
&lt;br /&gt;
type&lt;br /&gt;
  TForm1 = class(TForm)&lt;br /&gt;
    Button1: TButton;&lt;br /&gt;
    Button2: TButton;&lt;br /&gt;
    Button3: TButton;&lt;br /&gt;
    ADOConnection1: TADOConnection;&lt;br /&gt;
    ADOTable1: TADOTable;&lt;br /&gt;
    procedure FormCreate(Sender: TObject);&lt;br /&gt;
    procedure Button1Click(Sender: TObject);&lt;br /&gt;
    procedure Button2Click(Sender: TObject);&lt;br /&gt;
    procedure Button3Click(Sender: TObject);&lt;br /&gt;
  private&lt;br /&gt;
    { Private declarations }&lt;br /&gt;
  public&lt;br /&gt;
    { Public declarations }&lt;br /&gt;
  end;&lt;br /&gt;
&lt;br /&gt;
var&lt;br /&gt;
  Form1  : TForm1;
  dbPath : string;
  frx    : TfrxReport;
  frxDB  : TfrxDBDataset;

implementation&lt;br /&gt;

{$R *.dfm}&lt;br /&gt;

// Tombol Design Report&lt;br /&gt;
procedure TForm1.Button1Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
  frxDB.DataSet  := ADOTable1;&lt;br /&gt;
  frxDB.UserName := &#39;mahasiswa&#39;;&lt;br /&gt;
  frx.DesignReport;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
// Tombol Preview Report&lt;br /&gt;
procedure TForm1.Button2Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
  frxDB.DataSet  := ADOTable1;&lt;br /&gt;
  frxDB.UserName := &#39;mahasiswa&#39;;&lt;br /&gt;
  frx.LoadFromFile(ExtractFilePath(ParamStr(0))+&#39;Reports\cobacoba.fr3&#39;);&lt;br /&gt;
  frx.ShowReport;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
// Tombol Print Report&lt;br /&gt;
procedure TForm1.Button3Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
  frxDB.DataSet  := ADOTable1;&lt;br /&gt;
  frxDB.UserName := &#39;mahasiswa&#39;;&lt;br /&gt;
  frx.LoadFromFile(ExtractFilePath(ParamStr(0))+&#39;Reports\cobacoba.fr3&#39;);&lt;br /&gt;
  frx.PrepareReport;&lt;br /&gt;
  frx.Print;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
procedure TForm1.FormCreate(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
  dbPath:=ExtractFilePath(ParamStr(0))+&#39;\coba.mdb&#39;;&lt;br /&gt;
  ADOConnection1.ConnectionString:=&#39;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&#39;+dbPath+&#39;;Persist Security Info=False&#39;;&lt;br /&gt;
  ADOConnection1.Connected := True;&lt;br /&gt;
  ADOTable1.TableName := &#39;mhs&#39;;&lt;br /&gt;
  ADOTable1.Active    := True;&lt;br /&gt;
  frx    := TfrxReport.Create(Self);&lt;br /&gt;
  frxDB  := TfrxDBDataset.Create(Self);&lt;br /&gt;
end;&lt;br /&gt;
end.
&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Setelah selesai sekarang Fast Report sudah bisa dipakai secara runtime, meskipun agak ribet sih.. wkwkwk... :D Jalankan program dan klik tombol Design Report maka akan muncul Fast Report Designer, nah disitu kita bisa buat atau mendesain tampilan report sesuai yang diinginkan.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada saat mendesain report kita tambahkan dulu dataset nya dengan cara klik pada menu Report &amp;gt; Data &amp;gt; tambahkan dataset yang diberi nama mahasiswa tadi. seperti gambar berikut :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg55ON7mlqMGgRxrY_6Wod-wNUU75G3YTHj55bQN2u0QekW2NG15M9Y-JMNm9TmjYvPgz9eJm3ZPXXyGx7WfMigBRmgEiLGFjqo-_gJgz2P5OtX_fkEwNOoCOafda_YW3DBOV0rdB68UjAN/s1600/report+data.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg55ON7mlqMGgRxrY_6Wod-wNUU75G3YTHj55bQN2u0QekW2NG15M9Y-JMNm9TmjYvPgz9eJm3ZPXXyGx7WfMigBRmgEiLGFjqo-_gJgz2P5OtX_fkEwNOoCOafda_YW3DBOV0rdB68UjAN/s400/report+data.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE0P8g63XzVx2wZO6uifXlW4_SYFfyRzFsnObHG9KrvW19jWdM-f5peoWxovTX6qmQT-r-PRKcyv-UPiFCjMeUj84yXm6J7BF7iBltl4JMR4KCfhfGhCDzip7zKCx6OrWnLVdACJGq1MEp/s1600/dataset.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE0P8g63XzVx2wZO6uifXlW4_SYFfyRzFsnObHG9KrvW19jWdM-f5peoWxovTX6qmQT-r-PRKcyv-UPiFCjMeUj84yXm6J7BF7iBltl4JMR4KCfhfGhCDzip7zKCx6OrWnLVdACJGq1MEp/s1600/dataset.jpg&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Contoh desain Fast Report yang ane buat, dan ane beri nama &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;cobacoba.fr3&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOIy8ZL-Bjga8Y6j9nkh-h-7J8pUCzD5W5jxhSk-JmiZ3gBQoJqkQ-ctLLnz3vlNlJef1MDYMVpTl3LyyPspJfRCBvSUUY2rajCe4lg86GtHA0IBJqwqYTekWm0HFeF0SJ_hDMuWcdTPfu/s1600/report+design.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOIy8ZL-Bjga8Y6j9nkh-h-7J8pUCzD5W5jxhSk-JmiZ3gBQoJqkQ-ctLLnz3vlNlJef1MDYMVpTl3LyyPspJfRCBvSUUY2rajCe4lg86GtHA0IBJqwqYTekWm0HFeF0SJ_hDMuWcdTPfu/s400/report+design.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Berikut hasil reportnya yang ane screen shot :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjscjwwsFV_4Qa6YngMPSF63TzWvFnoExFx1h8uD6Th5sjeuL5-R4lCnSHHoeN3pFlscm20FQRskT-6Oga219UdpN28R0i8WHnfd9AafUzrCFPVhPni416hScY2gB_wmWforZjq1qrs4kRu/s1600/hasil.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjscjwwsFV_4Qa6YngMPSF63TzWvFnoExFx1h8uD6Th5sjeuL5-R4lCnSHHoeN3pFlscm20FQRskT-6Oga219UdpN28R0i8WHnfd9AafUzrCFPVhPni416hScY2gB_wmWforZjq1qrs4kRu/s400/hasil.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Yang lagi males ngoding nih ada Full Source Code dan Programnya, silahkan download aja &lt;a href=&quot;http://adf.ly/PiBeI&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/4521193311878567832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/05/menggunakan-fast-report-secara-runtime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/4521193311878567832'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/4521193311878567832'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/05/menggunakan-fast-report-secara-runtime.html' title='Menggunakan Fast Report Secara Runtime'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi7N1srpe_fgDu70Jmq9645zRcLBVbaIgR6FSPsvRQwc0SoVV_63yMcYPJmBdBk9jBQ012vW9cSKSUkDIgW3lVU4JK8lxnsyqsWC_r19A7bVafOb_tzM4Lcty2rnS0MXVmEvVcwis_cfXm/s72-c/recompile.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-8678321197988933484</id><published>2013-05-15T16:19:00.000+07:00</published><updated>2013-05-15T16:19:53.300+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Membatalkan Form Always On Top Delphi</title><content type='html'>Dulu ane pernah posting cara membuat &lt;a href=&quot;http://adf.ly/P464F&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;form always on top dengan delphi&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;
Nah kali ini ane mau berbagi sedikit tips cara membatalkan form always on top tersebut..&lt;br /&gt;
Langsung saja.. :D&lt;br /&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;procedure TForm1.Button2Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;SetWindowPos(&lt;br /&gt;  Handle,&lt;br /&gt;  HWND_NOTOPMOST,&lt;br /&gt;  0,&lt;br /&gt;  0,&lt;br /&gt;  0,&lt;br /&gt;  0,&lt;br /&gt;  SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);&lt;br /&gt;end;
&lt;/textarea&gt;&lt;br /&gt;
Progam&amp;nbsp;+ Source Code bisa didownload &lt;a href=&quot;http://adf.ly/P47J9&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Hasil screenshot program&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3OSTZjig7fydCXD8_BXP8Ksd7ZnUzojkDe4rVIjNxUmD4yfbom-9TRYxMSKcYGZcBkaR3XwcRxGyFJ1h-UH5aRpdtN_NZh60P0i3H6ZkjS3_KRgR_UfEI4_wtptkbehenBBlo5-52j6Dj/s1600/ontop.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3OSTZjig7fydCXD8_BXP8Ksd7ZnUzojkDe4rVIjNxUmD4yfbom-9TRYxMSKcYGZcBkaR3XwcRxGyFJ1h-UH5aRpdtN_NZh60P0i3H6ZkjS3_KRgR_UfEI4_wtptkbehenBBlo5-52j6Dj/s400/ontop.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/8678321197988933484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/05/membatalkan-form-always-on-top-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/8678321197988933484'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/8678321197988933484'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/05/membatalkan-form-always-on-top-delphi.html' title='Membatalkan Form Always On Top Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3OSTZjig7fydCXD8_BXP8Ksd7ZnUzojkDe4rVIjNxUmD4yfbom-9TRYxMSKcYGZcBkaR3XwcRxGyFJ1h-UH5aRpdtN_NZh60P0i3H6ZkjS3_KRgR_UfEI4_wtptkbehenBBlo5-52j6Dj/s72-c/ontop.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-7653121974474458385</id><published>2013-04-24T09:43:00.000+07:00</published><updated>2013-04-24T09:44:14.011+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Firebird"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Import Dari Excel ke Database Firebird-Interbase Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Males nulis ane... wkwkwkk..... :D langsung saja dah ini unit full langsung pake..&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dibuat dengan delphi 2007, make komponen Interbase ( Standar ).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Sudah di uji coba dengan database Firebird 2.0 SQL Dialect 3.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit uMain;&lt;br /&gt;&lt;br /&gt;interface&lt;br /&gt;&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, StdCtrls, XPMan, Grids, DBGrids, DB, IBCustomDataSet, IBQuery,&lt;br /&gt;  IBDatabase, ComObj;&lt;br /&gt;&lt;br /&gt;type&lt;br /&gt;  TFImport = class(TForm)&lt;br /&gt;    XPManifest1: TXPManifest;&lt;br /&gt;    OD: TOpenDialog;&lt;br /&gt;    Button1: TButton;&lt;br /&gt;    DBGrid1: TDBGrid;&lt;br /&gt;    db: TIBDatabase;&lt;br /&gt;    tr: TIBTransaction;&lt;br /&gt;    ds: TDataSource;&lt;br /&gt;    Label1: TLabel;&lt;br /&gt;    Label2: TLabel;&lt;br /&gt;    tb: TIBDataSet;&lt;br /&gt;    Button2: TButton;&lt;br /&gt;    Q1: TIBQuery;&lt;br /&gt;    tbNOPOL: TIBStringField;&lt;br /&gt;    tbJENIS: TIBStringField;&lt;br /&gt;    tbJTEMPO: TDateField;&lt;br /&gt;    tbEX_NOPOL: TIBStringField;&lt;br /&gt;&lt;br /&gt;    procedure ProsesFromExcel(pFileName:String) ;&lt;br /&gt;    procedure Button1Click(Sender: TObject);&lt;br /&gt;    procedure FormCreate(Sender: TObject);&lt;br /&gt;    procedure FormShow(Sender: TObject);&lt;br /&gt;    procedure Button2Click(Sender: TObject);&lt;br /&gt;  private&lt;br /&gt;    { Private declarations }&lt;br /&gt;  public&lt;br /&gt;    { Public declarations }&lt;br /&gt;  end;&lt;br /&gt;&lt;br /&gt;var&lt;br /&gt;  FImport: TFImport;&lt;br /&gt;&lt;br /&gt;implementation&lt;br /&gt;&lt;br /&gt;{$R *.dfm}&lt;br /&gt;&lt;br /&gt;procedure TFImport.Button1Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  if OD.Execute then&lt;br /&gt;    ProsesFromExcel(OD.FileName);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TFImport.Button2Click(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;if MessageDlg(&#39;Hapus semua record ?&#39;,mtConfirmation,[mbYes,mbNo],0) = mrYes then&lt;br /&gt;begin&lt;br /&gt;  Q1.Close;&lt;br /&gt;  Q1.SQL.Clear;&lt;br /&gt;  Q1.SQL.Add(&#39;delete from COBA&#39;);&lt;br /&gt;  Q1.ExecSQL;&lt;br /&gt;&lt;br /&gt;  tb.ApplyUpdates;&lt;br /&gt;  tb.Transaction.CommitRetaining;&lt;br /&gt;  tb.Close;&lt;br /&gt;  tb.Open;&lt;br /&gt;  Label2.Caption :=&#39;0&#39;;&lt;br /&gt;end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TFImport.FormCreate(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;try&lt;br /&gt;  if db.Connected = True then db.Connected:=False;&lt;br /&gt;  db.DatabaseName:=ExtractFilePath(ParamStr(0))+&#39;Data\COBA.FDB&#39;;&lt;br /&gt;  db.Open;&lt;br /&gt;  Label2.Caption :=&#39;0&#39;;&lt;br /&gt;except&lt;br /&gt;    MessageDlg(&#39;Database Tidak Terkoneksi..!!&#39;,mtError,[mbOK],0);&lt;br /&gt;    Application.Terminate;&lt;br /&gt;end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TFImport.FormShow(Sender: TObject);&lt;br /&gt;begin&lt;br /&gt;  tb.Open;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;procedure TFImport.ProsesFromExcel(pFileName:String) ;&lt;br /&gt;var&lt;br /&gt;baris : Word;&lt;br /&gt;ExcelApp: OleVariant ;&lt;br /&gt;JML_BERHASIL : Integer;&lt;br /&gt;vNOPOL,vJENIS,vEX_NOPOL : string;&lt;br /&gt;vJTEMPO : TDateTime;&lt;br /&gt;BEGIN&lt;br /&gt;try&lt;br /&gt;&lt;br /&gt;  ExcelApp := CreateOleObject(&#39;Excel.Application&#39;);&lt;br /&gt;  ExcelApp.Workbooks.Open(pFileName);&lt;br /&gt;  JML_BERHASIL := 0;&lt;br /&gt;  tb.Close;&lt;br /&gt;  tb.Open;&lt;br /&gt;  baris := 3;&lt;br /&gt;&lt;br /&gt;REPEAT&lt;br /&gt;&lt;br /&gt;  vNOPOL         := VarToStr(ExcelApp.Cells[baris,1]) ;&lt;br /&gt;  vJENIS         := VarToStr(ExcelApp.Cells[baris,2]) ;&lt;br /&gt;  vJTEMPO        := VarToDateTime(ExcelApp.Cells[baris,3]) ;&lt;br /&gt;  vEX_NOPOL      := VarToStr(ExcelApp.Cells[baris,4]) ;&lt;br /&gt;  &lt;br /&gt;  tb.Insert;&lt;br /&gt;  tbNOPOL.AsString        := vNOPOL;&lt;br /&gt;  tbJENIS.AsString        := vJENIS;&lt;br /&gt;  tbJTEMPO.AsDateTime     := vJTEMPO;&lt;br /&gt;  tbEX_NOPOL.AsString     := vEX_NOPOL;&lt;br /&gt;&lt;br /&gt;  tb.ApplyUpdates;&lt;br /&gt;  tb.Transaction.CommitRetaining;&lt;br /&gt;&lt;br /&gt;  JML_BERHASIL := JML_BERHASIL + 1;&lt;br /&gt;  Label2.Caption := IntToStr(JML_BERHASIL);&lt;br /&gt;  baris := baris+1;&lt;br /&gt;&lt;br /&gt;UNTIL VarToStr(ExcelApp.cells[baris,1]) = &#39;&#39; ;&lt;br /&gt;&lt;br /&gt;  ExcelApp.DisplayAlerts := False;&lt;br /&gt;  ExcelApp.Quit;&lt;br /&gt;&lt;br /&gt;  tb.Close;&lt;br /&gt;  tb.Open;&lt;br /&gt;  &lt;br /&gt;  MessageDlg(&#39;Import Berhasil&#39;,mtInformation,[mbOK],0);&lt;br /&gt;&lt;br /&gt;except&lt;br /&gt;  MessageDlg(&#39;Proses Import Gagal&#39;,mtInformation,[mbOK],0);&lt;br /&gt;  ExcelApp.Quit;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;end.
&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Kalo males ngoding, nih udah ane sediain project jadi full source... :D&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Download aja &lt;a href=&quot;http://adf.ly/NdAv8&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/7653121974474458385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/04/import-dari-excel-ke-database-firebird.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/7653121974474458385'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/7653121974474458385'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/04/import-dari-excel-ke-database-firebird.html' title='Import Dari Excel ke Database Firebird-Interbase Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-3267670914261337336</id><published>2013-04-20T10:48:00.000+07:00</published><updated>2013-04-24T09:46:15.919+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Mengambil Mac Address Delphi</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Program sederhana untuk mengambil Mac Address dengan Delphi&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pertama buatlah Unit dengan nama GetMacAddress, kemudian simpan.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
isi unit nya sbb :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;unit GetMacAddress;&lt;br /&gt;&lt;br /&gt;interface &lt;br /&gt;&lt;br /&gt;uses classes, sysutils; &lt;br /&gt;&lt;br /&gt;const &lt;br /&gt;MAX_INTERFACE_NAME_LEN = $100;&lt;br /&gt;ERROR_SUCCESS = 0; &lt;br /&gt;MAXLEN_IFDESCR = $100; &lt;br /&gt;MAXLEN_PHYSADDR = 8; &lt;br /&gt;&lt;br /&gt;MIB_IF_OPER_STATUS_NON_OPERATIONAL = 0 ; &lt;br /&gt;MIB_IF_OPER_STATUS_UNREACHABLE = 1; &lt;br /&gt;MIB_IF_OPER_STATUS_DISCONNECTED = 2; &lt;br /&gt;MIB_IF_OPER_STATUS_CONNECTING = 3; &lt;br /&gt;MIB_IF_OPER_STATUS_CONNECTED = 4; &lt;br /&gt;MIB_IF_OPER_STATUS_OPERATIONAL = 5; &lt;br /&gt;&lt;br /&gt;MIB_IF_TYPE_OTHER = 1; &lt;br /&gt;MIB_IF_TYPE_ETHERNET = 6; &lt;br /&gt;MIB_IF_TYPE_TOKENRING = 9; &lt;br /&gt;MIB_IF_TYPE_FDDI = 15; &lt;br /&gt;MIB_IF_TYPE_PPP = 23; &lt;br /&gt;MIB_IF_TYPE_LOOPBACK = 24; &lt;br /&gt;MIB_IF_TYPE_SLIP = 28; &lt;br /&gt;&lt;br /&gt;MIB_IF_ADMIN_STATUS_UP = 1; &lt;br /&gt;MIB_IF_ADMIN_STATUS_DOWN = 2; &lt;br /&gt;MIB_IF_ADMIN_STATUS_TESTING = 3; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;type &lt;br /&gt;&lt;br /&gt;MIB_IFROW = Record &lt;br /&gt;wszName : Array[0 .. (MAX_INTERFACE_NAME_LEN*2-1)] of char; &lt;br /&gt;dwIndex : LongInt; &lt;br /&gt;dwType : LongInt; &lt;br /&gt;dwMtu : LongInt; &lt;br /&gt;dwSpeed : LongInt; &lt;br /&gt;dwPhysAddrLen : LongInt; &lt;br /&gt;bPhysAddr : Array[0 .. (MAXLEN_PHYSADDR-1)] of Byte; &lt;br /&gt;dwAdminStatus : LongInt; &lt;br /&gt;dwOperStatus : LongInt; &lt;br /&gt;dwLastChange : LongInt; &lt;br /&gt;dwInOctets : LongInt; &lt;br /&gt;dwInUcastPkts : LongInt; &lt;br /&gt;dwInNUcastPkts : LongInt; &lt;br /&gt;dwInDiscards : LongInt; &lt;br /&gt;dwInErrors : LongInt; &lt;br /&gt;dwInUnknownProtos : LongInt; &lt;br /&gt;dwOutOctets : LongInt; &lt;br /&gt;dwOutUcastPkts : LongInt; &lt;br /&gt;dwOutNUcastPkts : LongInt; &lt;br /&gt;dwOutDiscards : LongInt; &lt;br /&gt;dwOutErrors : LongInt; &lt;br /&gt;dwOutQLen : LongInt; &lt;br /&gt;dwDescrLen : LongInt; &lt;br /&gt;bDescr : Array[0 .. (MAXLEN_IFDESCR - 1)] of Char; &lt;br /&gt;end; &lt;br /&gt;&lt;br /&gt;function Get_EthernetAddresses: TStringList; &lt;br /&gt;&lt;br /&gt;Function GetIfTable( pIfTable : Pointer; &lt;br /&gt;VAR pdwSize : LongInt; &lt;br /&gt;bOrder : LongInt ): LongInt; stdcall; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;implementation &lt;br /&gt;&lt;br /&gt;Function GetIfTable; stdcall; external &#39;MacAddress.dll&#39;;&lt;br /&gt;&lt;br /&gt;function Get_EthernetAddresses: TStringList; &lt;br /&gt;const &lt;br /&gt;_MAX_ROWS_ = 20; &lt;br /&gt;&lt;br /&gt;type &lt;br /&gt;_IfTable = Record &lt;br /&gt;nRows : LongInt; &lt;br /&gt;ifRow : Array[1.._MAX_ROWS_] of MIB_IFROW; &lt;br /&gt;end; &lt;br /&gt;&lt;br /&gt;VAR &lt;br /&gt;pIfTable : ^_IfTable; &lt;br /&gt;TableSize : LongInt; &lt;br /&gt;tmp : String; &lt;br /&gt;i,j : Integer; &lt;br /&gt;ErrCode : LongInt; &lt;br /&gt;begin &lt;br /&gt;pIfTable := nil; &lt;br /&gt;//---------------------------------------------------------------&lt;br /&gt;Result:=TStringList.Create;&lt;br /&gt;&lt;br /&gt;if Assigned(Result) then &lt;br /&gt;try &lt;br /&gt;//------------------------------------------------------- &lt;br /&gt;// First: just get the buffer size. &lt;br /&gt;// TableSize returns the size needed. &lt;br /&gt;TableSize:=0; // Set to zero so the GetIfTabel function &lt;br /&gt;// won&#39;t try to fill the buffer yet, &lt;br /&gt;// but only return the actual size it needs. &lt;br /&gt;GetIfTable(pIfTable, TableSize, 1); &lt;br /&gt;if (TableSize &lt; SizeOf(MIB_IFROW)+Sizeof(LongInt)) then &lt;br /&gt;begin &lt;br /&gt;Exit; // less than 1 table entry?! &lt;br /&gt;end; // if-end. &lt;br /&gt;&lt;br /&gt;// Second: &lt;br /&gt;// allocate memory for the buffer and retrieve the &lt;br /&gt;// entire table. &lt;br /&gt;GetMem(pIfTable, TableSize); &lt;br /&gt;ErrCode := GetIfTable(pIfTable, TableSize, 1); &lt;br /&gt;if ErrCode&lt;&gt;ERROR_SUCCESS then &lt;br /&gt;begin &lt;br /&gt;Exit; // OK, that did not work. &lt;br /&gt;// Not enough memory i guess. &lt;br /&gt;end; // if-end. &lt;br /&gt;&lt;br /&gt;// Read the ETHERNET addresses. &lt;br /&gt;for i := 1 to pIfTable^.nRows do &lt;br /&gt;try &lt;br /&gt;if pIfTable^.ifRow[i].dwType=MIB_IF_TYPE_ETHERNET then &lt;br /&gt;begin &lt;br /&gt;tmp:=&#39;&#39;; &lt;br /&gt;for j:=0 to pIfTable^.ifRow[i].dwPhysAddrLen-1 do &lt;br /&gt;begin &lt;br /&gt;tmp := tmp + format(&#39;%.2x&#39;, &lt;br /&gt;[ pIfTable^.ifRow[i].bPhysAddr[j] ] ); &lt;br /&gt;end; // for-end. &lt;br /&gt;//------------------------------------- &lt;br /&gt;if Length(tmp)&gt;0 then Result.Add(tmp); &lt;br /&gt;end; // if-end. &lt;br /&gt;except &lt;br /&gt;Exit; &lt;br /&gt;end; // if-try-except-end. &lt;br /&gt;finally &lt;br /&gt;if Assigned(pIfTable) then FreeMem(pIfTable,TableSize); &lt;br /&gt;end; // if-try-finally-end. &lt;br /&gt;end; &lt;br /&gt;&lt;br /&gt;end. &lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Sertakan file library &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;MacAddress.dll&lt;/b&gt;&lt;/span&gt; dalam satu folder project.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Tambahkan satu Memo dan Button pada Form.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Tambahkan unit GetMacAddress yg di buat tadi.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
File &amp;gt; Use Unit...&amp;nbsp; tambahkan unit nya..&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
Cara Menggunakannya. Double klik button dan tulis code sbb :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;procedure TForm1.Button1Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
  Memo1.Clear;&lt;br /&gt;
  Memo1.Lines.Assign(GetMacAddress.Get_EthernetAddresses);&lt;br /&gt;
end;&lt;/textarea&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hasil Screenshot Program :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyX2G_7vCsV-wwQ_IP533_9WzDa492fj0BH38AGnVblZFved1DP1Qv-4zSQl24a6PVBtZpV6W1vrKex1eXmO51WOz0HmIXBD_IMgAqnZ9mVTwya1DiIiTkNiFAfy2tQFgqV9mxyugpReP1/s1600/MacAddress.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyX2G_7vCsV-wwQ_IP533_9WzDa492fj0BH38AGnVblZFved1DP1Qv-4zSQl24a6PVBtZpV6W1vrKex1eXmO51WOz0HmIXBD_IMgAqnZ9mVTwya1DiIiTkNiFAfy2tQFgqV9mxyugpReP1/s400/MacAddress.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
Contoh program diatas ada dua Mac Address karena pada PC ane ada 2 Mac Address, yang satu asli punya PC, yang satunya lagi punya Hamchi.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Download Program dan Source Code nya&lt;/span&gt; &lt;a href=&quot;http://adf.ly/NJaT3&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DISINI&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/3267670914261337336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/04/mengambil-mac-address-delphi.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/3267670914261337336'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/3267670914261337336'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/04/mengambil-mac-address-delphi.html' title='Mengambil Mac Address Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyX2G_7vCsV-wwQ_IP533_9WzDa492fj0BH38AGnVblZFved1DP1Qv-4zSQl24a6PVBtZpV6W1vrKex1eXmO51WOz0HmIXBD_IMgAqnZ9mVTwya1DiIiTkNiFAfy2tQFgqV9mxyugpReP1/s72-c/MacAddress.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-8972713522459964297</id><published>2013-04-06T11:51:00.000+07:00</published><updated>2013-04-06T12:10:38.388+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="RDBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Backup dan Restore Firebird/Interbase via CMD</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Dalam contoh postingan ini ane pake Firebird 2.0&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada intinya sama, kita letakan path nya dimana file GBAK.exe itu berada.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Untuk lebih jelasnya silahkan lihat pada gambar.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Backup&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
gbak -v -user sysdba -pass masterkey  [file_database] [file_backup]&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Contoh: &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
gbak.exe -v -user sysdba -pass masterkey D:\_MemOnLine\Data\MEMO.GDB C:\MEMO.GBK&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYck2N3bMjSQPA54KQBghBgZIpjK7kYJLbgHf-9YIKwxn_mziggGwiHzyjWI9LOei4j46IQdlSp9KMCLD5auzwM72iSYVjbnwM3g4A86mAHv94zpgdyMy3L8Lg9ACAmg-7Z7za6QkSs0h7/s1600/backup.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYck2N3bMjSQPA54KQBghBgZIpjK7kYJLbgHf-9YIKwxn_mziggGwiHzyjWI9LOei4j46IQdlSp9KMCLD5auzwM72iSYVjbnwM3g4A86mAHv94zpgdyMy3L8Lg9ACAmg-7Z7za6QkSs0h7/s400/backup.jpg&quot; width=&quot;400&quot; /&gt; &lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Contoh jika database ada di komputer lain :&lt;br /&gt;
gbak.exe -v -c -r -k&amp;nbsp; -user sysdba -pass masterkey 10.10.1.209:D:\_MemOnLine\Data\MEMO.GDB C:\MEMO.GBK&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Restore &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
gbak -v -c -r -k -user sysdba -pass masterkey [file_backup]  [file_database]&lt;/div&gt;
&lt;br /&gt;
Contoh:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
gbak.exe -v -c -r -k&amp;nbsp; -user sysdba -pass masterkey C:\MEMO.GBK C:\MEMO.GDB&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR4vIoZpJ1AJD5MMDTiglbvFT3bVe9Pi3moDunfWpsMhnDC7msy0Ew7cnuXqc82BLD5oeHGvBpNAo7PiVotDdzxrBn_X9v2KiymaOWGJ1g9eP3aAnZj82RxqDY2xVhDGx1ZIZBE_kb3eHC/s1600/restore.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR4vIoZpJ1AJD5MMDTiglbvFT3bVe9Pi3moDunfWpsMhnDC7msy0Ew7cnuXqc82BLD5oeHGvBpNAo7PiVotDdzxrBn_X9v2KiymaOWGJ1g9eP3aAnZj82RxqDY2xVhDGx1ZIZBE_kb3eHC/s400/restore.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Catatan sedikit untuk proses Restore :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
kalo pingin ada pengaman (ditolak jika sudah ada file databasenya) buang comand -r&lt;br /&gt;
-r = replace. akan ditolak jika database masih dipake/ tidak tahu user&amp;amp;pass nya.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/8972713522459964297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/04/backup-dan-restore-firebirdinterbase.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/8972713522459964297'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/8972713522459964297'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/04/backup-dan-restore-firebirdinterbase.html' title='Backup dan Restore Firebird/Interbase via CMD'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYck2N3bMjSQPA54KQBghBgZIpjK7kYJLbgHf-9YIKwxn_mziggGwiHzyjWI9LOei4j46IQdlSp9KMCLD5auzwM72iSYVjbnwM3g4A86mAHv94zpgdyMy3L8Lg9ACAmg-7Z7za6QkSs0h7/s72-c/backup.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-2713707517745735746</id><published>2013-04-01T10:21:00.000+07:00</published><updated>2013-04-24T09:47:04.516+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Membuka Folder Delphi</title><content type='html'>Seletah membahas tentang cara &lt;a href=&quot;http://zallysoft.blogspot.com/2013/03/membuat-folder-dan-subfolder-delphi.html&quot; target=&quot;_blank&quot;&gt;membuat folder dan subfolder&lt;/a&gt;, &lt;a href=&quot;http://zallysoft.blogspot.com/2013/03/menghapus-folder-beserta-file-didalamnya.html&quot; target=&quot;_blank&quot;&gt;menghapus folder beserta file di dalamnya&lt;/a&gt;, sekarang cara membuka folder delphi.&lt;br /&gt;
&lt;br /&gt;
Caranya cukup mudah, langsung saja ke TKP&amp;nbsp; :D&lt;br /&gt;
&lt;br /&gt;
Tambahkan Uses &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;ShellAPI &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;procedure TForm1.Button1Click(Sender: TObject); &lt;br /&gt;begin &lt;br /&gt;ShellExecute(handle, &#39;Open&#39;, &#39;C:\zallysoft&#39;, nil, nil, SW_SHOWNORMAL);end;
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/2713707517745735746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/03/membuka-folder-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/2713707517745735746'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/2713707517745735746'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/03/membuka-folder-delphi.html' title='Membuka Folder Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5385427364087848770.post-6484329070399763145</id><published>2013-03-19T10:29:00.001+07:00</published><updated>2013-04-24T09:47:04.523+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Pemrograman"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips n Tricks"/><title type='text'>Memanggil File Word Delphi</title><content type='html'>Tambahkan Uses &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;ShellAPI&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Memanggil dari PC sendiri :&lt;/b&gt;&lt;br /&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;procedure TForm1.Button1Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
ShellExecute(Handle,&#39;open&#39;,&#39;D:\Data\fileku.doc&#39;,nil,nil,SW_SHOWNORMAL) ;&lt;br /&gt;
end;&lt;br /&gt;
&lt;/textarea&gt;
&lt;b&gt;Memanggil dari PC lain, dengan catatan udah dishare drive nya :&lt;/b&gt;&lt;br /&gt;
&lt;textarea class=&quot;pascal&quot; cols=&quot;60&quot; name=&quot;code&quot; rows=&quot;10&quot;&gt;procedure TForm1.Button1Click(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
ShellExecute(Handle,&#39;open&#39;,pChar(&#39;\\10.10.1.208\d$\Folder\data.doc&#39;),nil, nil, SW_SHOWNORMAL);&lt;br /&gt;
end;&lt;/textarea&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;NB&lt;/b&gt;&lt;/span&gt; : Format &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;.doc&lt;/b&gt;&lt;/span&gt; bisa juga diganti dengan &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;.docx&lt;/span&gt;&lt;/b&gt; disesuaikan aja...</content><link rel='replies' type='application/atom+xml' href='https://zallysoft.blogspot.com/feeds/6484329070399763145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://zallysoft.blogspot.com/2013/03/memanggil-file-word-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/6484329070399763145'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5385427364087848770/posts/default/6484329070399763145'/><link rel='alternate' type='text/html' href='https://zallysoft.blogspot.com/2013/03/memanggil-file-word-delphi.html' title='Memanggil File Word Delphi'/><author><name>zeida</name><uri>http://www.blogger.com/profile/05615911778537419067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>