<?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: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-7810023098723735378</id><updated>2012-02-16T04:01:27.176-08:00</updated><title type='text'>Berbagi Ilmu Delphi</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://agus-w.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7810023098723735378/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://agus-w.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>AW</name><uri>http://www.blogger.com/profile/08637492921390486354</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7810023098723735378.post-7123434020987267139</id><published>2007-11-26T17:48:00.000-08:00</published><updated>2007-11-26T18:04:29.626-08:00</updated><title type='text'>Pengganti Perintah sleep dengan procedure baru</title><content type='html'>&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Anda tentunya pernah menggunakan syntax sleep(), untuk menunda suatu proses. Perintah sleep() akan menghentikan proses sesusai dengan waktu yang kita  inginkan, akan tetapi  sleep  mempunyai efek yang kurang bagus, program sperti keliatan hang, nah  untuk mengatasinya kita bisa membuat procedure baru. Berikut i ni contohnya: &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;procedure TForm1.Delay(msecs:integer);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;var&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;   FirstTickCount:longint;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;begin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;     FirstTickCount:=GetTickCount;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;     repeat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;           Application.ProcessMessages;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;     until ((GetTickCount-FirstTickCount) &gt;= Longint(msecs));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;Selamat mencoba.&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7810023098723735378-7123434020987267139?l=agus-w.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agus-w.blogspot.com/feeds/7123434020987267139/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7810023098723735378&amp;postID=7123434020987267139' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7810023098723735378/posts/default/7123434020987267139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7810023098723735378/posts/default/7123434020987267139'/><link rel='alternate' type='text/html' href='http://agus-w.blogspot.com/2007/11/pengganti-perintah-sleep-dengan.html' title='Pengganti Perintah sleep dengan procedure baru'/><author><name>AW</name><uri>http://www.blogger.com/profile/08637492921390486354</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
