<?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-553207871891212042</id><updated>2024-10-24T01:03:55.945-07:00</updated><category term="Visual Basic"/><category term="Humor"/><category term="PHP"/><category term="C++"/><title type='text'>Learning Programs...</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-553207871891212042.post-2119658838241236842</id><published>2010-09-28T18:57:00.000-07:00</published><updated>2010-09-28T19:06:06.308-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><title type='text'>Animation</title><content type='html'>This program almost same with others animation program. The $ character will be printed on the top of the screen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This program created using C++ editor.  Here is the code:&lt;br /&gt;&lt;br /&gt;#include &lt;constream.h&gt;&lt;br /&gt;#include &lt;stdlib.h&gt;&lt;br /&gt;#include &lt;dos.h&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;int x,y,ay;&lt;br /&gt;clrscr();&lt;br /&gt;x=random(78)+1;&lt;br /&gt;y=random(4)+1;&lt;br /&gt;ay=random(5)+1;&lt;br /&gt;_setcursortype(_NOCURSOR);&lt;br /&gt;textcolor(random(16));&lt;br /&gt;do{&lt;br /&gt;   gotoxy(x,y); cprintf(&quot;$&quot;);&lt;br /&gt;   delay(100);&lt;br /&gt;   gotoxy(x,y); cout&lt;&lt;&quot; &quot;;               y=y+ay;               x=random(78)+1;               if (y&gt;=20)&lt;br /&gt;   {&lt;br /&gt;       gotoxy(x,y); cprintf(&quot;$&quot;);&lt;br /&gt;       x=random(78)+1;&lt;br /&gt;       y=random(4)+1;&lt;br /&gt;       ay=random(5)+1;&lt;br /&gt;       textcolor(random(16));&lt;br /&gt;   }&lt;br /&gt;}while(!kbhit());&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;/dos.h&gt;&lt;/stdlib.h&gt;&lt;/constream.h&gt;</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/2119658838241236842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/09/animation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2119658838241236842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2119658838241236842'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/09/animation.html' title='Animation'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-3299057902602956803</id><published>2010-01-21T18:53:00.001-08:00</published><updated>2010-01-21T19:04:33.739-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Humor"/><title type='text'>Goodbye my friend</title><content type='html'>Dear friend, this might be the last word from me, I apologize for all my mistakes. Each meeting there must be separation, Pray for me, so I was always given the strength and always in His protection. I want to invite you, but I&#39;m sure you will not get. Carving my name in your heart as someone special. GOODBYE MY TRUE FRIENDS, I ALWAYS REMEMBER YOU. I&#39;ll go to Japan to help Ultraman, Cosmos and Black Steel Kastria to fight monsters Gorong-gorong and Ulat Bulu. Do not laugh this noble task, you know! .. Miss you-signed Bertopeng Heroes.</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/3299057902602956803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/goodbye-my-friend.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/3299057902602956803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/3299057902602956803'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/goodbye-my-friend.html' title='Goodbye my friend'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-4090339786058317633</id><published>2010-01-21T18:21:00.000-08:00</published><updated>2010-01-21T18:48:50.881-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Adding and showing data in dynamic arrays</title><content type='html'>The following discussion is a continuation of the &lt;a href=&quot;http://andi-learn.blogspot.com/2010/01/simple-data-entry-with-array.html&quot;&gt;previous postings&lt;/a&gt;. To add data, we need to add the following program code:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;ReDim Preserve strname(l - 1)&lt;br /&gt;    Write(&quot;Enter your name: &quot;)&lt;br /&gt;    strname(l - 1) = ReadLine()&lt;/p&gt;&lt;br /&gt;the results can be seen on the display below:&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsTE910FElZghJxBKZmVCtMP5YZpZLYpcO5aafZDGgV3tpF7EIhSYDsYQmCWmxvHmA3pMMZSs-uN43yRKnXXqOrMig4TejNBA4fOCIOPZdSixiKbxZBLS0CnthU8BkXggG8i6_Nb8yzcU/s1600-h/Adding+Data.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 102px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsTE910FElZghJxBKZmVCtMP5YZpZLYpcO5aafZDGgV3tpF7EIhSYDsYQmCWmxvHmA3pMMZSs-uN43yRKnXXqOrMig4TejNBA4fOCIOPZdSixiKbxZBLS0CnthU8BkXggG8i6_Nb8yzcU/s200/Adding+Data.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5429385699878990178&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;If we want to see data, it is necessary to add the following program code:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;For Each name In strname&lt;br /&gt;                   Write(&quot;Name: &quot; &amp;amp; name)&lt;br /&gt;      Next&lt;/p&gt;&lt;br /&gt;the results can be seen on the display below:&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSRQ_rNUOCuzISc7qLoZg05fUV5mCu4tdsZ8PanNwMV94grxuOJQzRvBLIYWpxHzdsdevyk_o-4KIqfeMNnqVzWd_lOxUWIBnY0KwD-9mNVIKS6G5-OTKvg2r111nKulOGvrggBsZaNaM/s1600-h/Showdata.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 102px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSRQ_rNUOCuzISc7qLoZg05fUV5mCu4tdsZ8PanNwMV94grxuOJQzRvBLIYWpxHzdsdevyk_o-4KIqfeMNnqVzWd_lOxUWIBnY0KwD-9mNVIKS6G5-OTKvg2r111nKulOGvrggBsZaNaM/s200/Showdata.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5429387504199976450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;For advanced stage can be added to the source code of how to edit the wrong data and delete data that is not used anymore.</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/4090339786058317633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/adding-data-in-dynamic-arrays.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/4090339786058317633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/4090339786058317633'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/adding-data-in-dynamic-arrays.html' title='Adding and showing data in dynamic arrays'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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/AVvXsEjsTE910FElZghJxBKZmVCtMP5YZpZLYpcO5aafZDGgV3tpF7EIhSYDsYQmCWmxvHmA3pMMZSs-uN43yRKnXXqOrMig4TejNBA4fOCIOPZdSixiKbxZBLS0CnthU8BkXggG8i6_Nb8yzcU/s72-c/Adding+Data.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-553207871891212042.post-4081369275313641773</id><published>2010-01-21T16:47:00.000-08:00</published><updated>2010-01-21T18:49:32.188-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Simple data entry with an array</title><content type='html'>This program will demonstrate to us how to process the data by using an array. There are two things that will be made on this program, namely to add data into the array and display the data and the program we made this time using the &lt;a href=&quot;http://andi-learn.blogspot.com/2009/08/vbnet-ca.html&quot;&gt;console application&lt;/a&gt;. The following program display:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6v-X0MDhY7O2OFQpCmTAUilJIq0PalojKef1Y_4o5u1Y2sb7wQP2Va5nrkx_ezgzTM72vkVxSAsTpB_VZV_22Bq2m7xmB6VWU_L_pzUHw9fB3ONBLNHNtQLULfvO52gzJimPrY88ugiw/s1600-h/Tampilan+depan.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 101px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6v-X0MDhY7O2OFQpCmTAUilJIq0PalojKef1Y_4o5u1Y2sb7wQP2Va5nrkx_ezgzTM72vkVxSAsTpB_VZV_22Bq2m7xmB6VWU_L_pzUHw9fB3ONBLNHNtQLULfvO52gzJimPrY88ugiw/s200/Tampilan+depan.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5429372502057249522&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;based on the view above, all we have to do in this program is starting from the bottom. By default, usually at the time of printing characters always starts from the top, but this time we run from the bottom. how to make the source code? Just a simple code shows below:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;For i = 1 To 25&lt;br /&gt;WriteLine()&lt;br /&gt;Next&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Further discussion will be presented in the &lt;a href=&quot;http://andi-learn.blogspot.com/2010/01/adding-data-in-dynamic-arrays.html&quot;&gt;next posting&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/4081369275313641773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/simple-data-entry-with-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/4081369275313641773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/4081369275313641773'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/simple-data-entry-with-array.html' title='Simple data entry with an array'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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/AVvXsEi6v-X0MDhY7O2OFQpCmTAUilJIq0PalojKef1Y_4o5u1Y2sb7wQP2Va5nrkx_ezgzTM72vkVxSAsTpB_VZV_22Bq2m7xmB6VWU_L_pzUHw9fB3ONBLNHNtQLULfvO52gzJimPrY88ugiw/s72-c/Tampilan+depan.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-553207871891212042.post-6017680191610915863</id><published>2010-01-20T09:44:00.000-08:00</published><updated>2010-01-21T07:17:20.762-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Trim and strlen function</title><content type='html'>After studying the &lt;a href=&quot;http://andi-learn.blogspot.com/2010/01/variabel.html&quot;&gt;variables&lt;/a&gt;, we continued the discussion of the trim and strlen function. The second function is used to manipulate the string.&lt;br /&gt;- Trim (); used to remove the spaces on the right or left a text, examples of program code is as follows:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;&lt; ? php&lt;br /&gt;  $text=&quot; test trim &quot;;&lt;br /&gt;  $text=trim($text);&lt;br /&gt;  echo $text.$text;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;  test trimtest trim&lt;br /&gt;&lt;br&gt;&lt;br /&gt;- Strlen(); used to calculate the text length, examples of program code is as follows:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;&lt; ? php&lt;br /&gt;  $text1=&quot; test trim &quot;;&lt;br /&gt;  $text2=trim($text1);&lt;br /&gt;  $lentext1=&quot; Text1 Length = &quot;.strlen($text1);&lt;br /&gt;  $lentext1=&quot; Text2 Length = &quot;.strlen($text2);&lt;br /&gt;  echo $lentext2.&quot;&lt;br&gt;&quot;;&lt;br /&gt;  echo $lentext1;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Output:&lt;br /&gt; Text1 Length = 11&lt;br /&gt; Text2 Length = 9</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/6017680191610915863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/trim-and-strlen-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/6017680191610915863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/6017680191610915863'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/trim-and-strlen-function.html' title='Trim and strlen function'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-5286797276662763306</id><published>2010-01-20T09:34:00.000-08:00</published><updated>2010-01-21T07:25:29.071-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Variable</title><content type='html'>In making a program, it should not be forgotten is variable. Variable plays an important role in the process of temporary data storage. Writing variables should also be noted. In writing PHP variables are always denoted by sign ($) in front of variable names. Variable names must consist of one syllable, could also be a combination of numbers with letters, but should not be preceded by the numbers.&lt;br /&gt;Example:&lt;br /&gt;$ NumBook = 23;&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;PHP is case sensitive, which means writing small and large very influential. To facilitate the writing of program code, it&#39;s worth all the code is written in small letters.&lt;br /&gt;&lt;br /&gt;To print the value of a variable can be done in the following ways:&lt;br /&gt;$ Number = 23;&lt;br /&gt;echo $ number</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/5286797276662763306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/variabel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/5286797276662763306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/5286797276662763306'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/variabel.html' title='Variable'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-2699101115916127411</id><published>2010-01-20T02:47:00.000-08:00</published><updated>2010-01-21T07:30:26.848-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Humor"/><title type='text'>Write the name wrong</title><content type='html'>Two young men decided to go through the graveyard in order to shorten the road. To eliminate the fear, they followed the grave telling stories and laughing. Suddenly they heard the sound of tapping a rock with a chisel. They are silent because of fear and try to listen where the sound came. There was an old man was carving gravestones. &quot;Hey Old man, you made us surprised, we thought a ghost. What did you do at this time of night?&quot; Without turning to the two young men, the old man replied, &quot;Those stupid people ... They were wrong to write my name ..&quot;</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/2699101115916127411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/write-name-wrong.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2699101115916127411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2699101115916127411'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/write-name-wrong.html' title='Write the name wrong'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-3078268447934347722</id><published>2010-01-20T01:46:00.000-08:00</published><updated>2010-01-21T07:32:32.527-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Basic PHP Programming</title><content type='html'>Rules in the PHP code, beginning with a &amp;lt;?php and ends with the sign ?&amp;gt; block PHP always flanked by a second sign. For each command will end with a sign; (semicolon). The following example PHP code.&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;&lt; ? php&lt;br /&gt;echo &quot;Hello World&quot;;&lt;br /&gt;? &gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;To try this code, we need an editor in this case the author uses the editor komodo dragons, and then type the php code. And do not forget to be stored in the folder C: \ Wamp \ www \ testphp \ and the file named hello.php and testphp.kpf project name. Next live run hello.php file via the browser as follows: http://localhost/testphp/hello.php ..</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/3078268447934347722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/basic-php-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/3078268447934347722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/3078268447934347722'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/basic-php-programming.html' title='Basic PHP Programming'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-3009069257709949992</id><published>2010-01-16T03:30:00.001-08:00</published><updated>2010-01-21T07:34:33.675-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Searching data within the array</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmvx9yq0SxRPi3eE8UT_u7gUdy7JHVefIvptcSmZRCbEBFCp6L3Q1eAV6-eH7CB3jn3GZhA9_M7qkMdqxUiIzWzujx6PuhlXhRcJ_DpzX8kr9PTDmS8AgK-DKqCuoXNhpHGmYkC7P9dBg/s1600-h/searching-man.jpg&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 93px; height: 117px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmvx9yq0SxRPi3eE8UT_u7gUdy7JHVefIvptcSmZRCbEBFCp6L3Q1eAV6-eH7CB3jn3GZhA9_M7qkMdqxUiIzWzujx6PuhlXhRcJ_DpzX8kr9PTDmS8AgK-DKqCuoXNhpHGmYkC7P9dBg/s200/searching-man.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5428142709461691666&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; The easiest way to search is to check all the array elements from the smallest index to the largest index of searchable data to be found. Example use in an array of data search is shown in the following programs:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim data(5) As Integer&lt;br /&gt;Dim x As Integer&lt;br /&gt;Randomize&lt;br /&gt;For i = 0 To 5&lt;br /&gt;data(i) = Rnd() * 10 + 5&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;x = InputBox(&quot;Entry Data: &quot;, &quot;Input&quot;)&lt;br /&gt;&lt;br /&gt;For j = 0 To 5&lt;br /&gt;If x = data(j) Then&lt;br /&gt;cek = True&lt;br /&gt;Exit For&lt;br /&gt;Else&lt;br /&gt;cek = False&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;If cek = True Then&lt;br /&gt;MsgBox (&quot;Found&quot;)&lt;br /&gt;Else&lt;br /&gt;MsgBox (&quot;Not Found&quot;)&lt;br /&gt;End If&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/3009069257709949992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/pencarian-data-di-dalam-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/3009069257709949992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/3009069257709949992'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/pencarian-data-di-dalam-array.html' title='Searching data within the array'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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/AVvXsEgmvx9yq0SxRPi3eE8UT_u7gUdy7JHVefIvptcSmZRCbEBFCp6L3Q1eAV6-eH7CB3jn3GZhA9_M7qkMdqxUiIzWzujx6PuhlXhRcJ_DpzX8kr9PTDmS8AgK-DKqCuoXNhpHGmYkC7P9dBg/s72-c/searching-man.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-553207871891212042.post-2369203457101624981</id><published>2010-01-16T03:25:00.000-08:00</published><updated>2010-01-21T07:37:19.531-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Dynamic Array</title><content type='html'>If the size or the number of array elements is not known, then the array variable can be declared as an array of dynamic arrays. Understanding the dynamic array is a list or set of data with the same data type, stored in a given index variable to distinguish each member of the array where the number of elements or the amount of data stored in the array is dynamic or changing during the program starts. To declare a dynamic array can be written with the following syntax:&lt;br /&gt;&lt;center&gt;&lt;p class=&quot;alert&quot;&gt;Dim SetArray() as DataType&lt;/p&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;From the above syntax can be seen that the size of the array or the amount of data has not been determined. To provide input data, then the very first thing to do is change the size (resize) with syntax redim (which comes from the word redimension).&lt;br /&gt;&lt;br /&gt;Example :&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;1. Dim arrName() as String&lt;br /&gt;2. Redim arrName(8)&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Description:&lt;br /&gt;In the example above; lines used to create a dynamic array with the name arrNama, while the second row using redIm to resize the array to be 9 elements (starting from index 0 to index 8).&lt;br /&gt;&lt;br /&gt;Weaknesses using redIm is dipanggial commands every time, all the values in the previous elements will be lost. To overcome this, create a preserve for VB add an array element without deleting the previous value.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim NameArray(5) as Integer&lt;br /&gt;NameArray(3) = 80&lt;br /&gt;Msgbox (NameArray(3)) ‘The program will display the number 80&lt;br /&gt;Redim Preserve NameArray(10)&lt;br /&gt;Msgbox (NameArray(3)) ‘ The program will display the same number 80...&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/2369203457101624981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2010/01/array-dinamis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2369203457101624981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2369203457101624981'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2010/01/array-dinamis.html' title='Dynamic Array'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-2209608661155556998</id><published>2009-08-23T01:22:00.002-07:00</published><updated>2010-01-21T07:38:56.497-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Animation in VB 2005 Console Application</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCuSqlm5wUCCd97YbaLciTh05LwFcEEhPXLy2V9uEqhOq7lQ6vT_BlOwxEUDrylcURG-0VQaUJxYHCGAL_UDh3TnFyjN-9qDwZkdD3rmR1ZbdVEEqtSWi_g1q6g-pL54VkGgFGsOVEDiU/s1600-h/animasi1.gif&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 123px; height: 102px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCuSqlm5wUCCd97YbaLciTh05LwFcEEhPXLy2V9uEqhOq7lQ6vT_BlOwxEUDrylcURG-0VQaUJxYHCGAL_UDh3TnFyjN-9qDwZkdD3rmR1ZbdVEEqtSWi_g1q6g-pL54VkGgFGsOVEDiU/s200/animasi1.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5428144296195711490&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Making animation program using VB 2005 console program is actually very simple application. The principle of actual animation is a process to print something the characters on the screen at some point later in the interval of a few seconds there is a process to delete or print a space so that the characters seem to move. In the VB 2005 console application, to print characters on the screen at point x, y then the syntax used nilaititikx and Console.CursorLeft = Console.CursorTop = y. This syntax is used to direct the cursor to be at the point x, y which have been determined. So that when a character wants to print the screen, always printed where the cursor position. To a point in the VB 2005 Console Application may only be occupied by a single letter (the unit used is the letter). Actual units used not only the letter there was another unit such as pixels, but which are discussed in this section is specific to the letter units.&lt;br /&gt;Point x represents the column, while y represents the line on the screen. Many columns by default there are 80 letters and rows by 25 rows.&lt;br /&gt;&lt;br /&gt;Statement is used for animations&lt;br /&gt;- System.Threading.Thread.Sleep (var); this statement is similar to the delay statement on the program C + + or pascal. This statement is used to delay the program execution process for a few milliseconds. Or in other words the program will delay the execution process for a few milliseconds.&lt;br /&gt;- Rnd; used to randomize the numbers. In this program, rnd statement is used to randomize the numbers which generated random numbers leads to the point x or y on the screen. And these numbers will be determined where these characters will be printed.&lt;br /&gt;- Do Until the loop condition; Without repeating the statement animation programs do not go as we expect. Conditions of looping statement that we use for this program is Console.KeyAvailable = True. Which means that as long as there are no key presses from the keyboard, all statements that are inside the do until condition .... loop will be done repeatedly</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/2209608661155556998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2009/08/animasi-di-vb-2005-console-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2209608661155556998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2209608661155556998'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2009/08/animasi-di-vb-2005-console-application.html' title='Animation in VB 2005 Console Application'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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/AVvXsEgCuSqlm5wUCCd97YbaLciTh05LwFcEEhPXLy2V9uEqhOq7lQ6vT_BlOwxEUDrylcURG-0VQaUJxYHCGAL_UDh3TnFyjN-9qDwZkdD3rmR1ZbdVEEqtSWi_g1q6g-pL54VkGgFGsOVEDiU/s72-c/animasi1.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-553207871891212042.post-659270393725565723</id><published>2009-08-23T01:22:00.001-07:00</published><updated>2010-01-20T10:06:01.533-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Humor"/><title type='text'>live in an information technology</title><content type='html'>You&#39;ll realize that you live in an age when information technology:&lt;br /&gt;1. You accidentally press your PIN when turned on the microwave&lt;br /&gt;2. You no longer play solitaire with playing cards truth&lt;br /&gt;3. You send an email to colleagues just a few tables away from you&lt;br /&gt;4. The reason you are not connected with your friends is because they do not have e-mail&lt;br /&gt;5. Each Pariwara ditelivisi there a website address or e-mail&lt;br /&gt;6. Leaving the house without bringing HandPhone make you panic, when you do not have previous HandPhone and it has lasted for tens of years and no problems.&lt;br /&gt;7. You wake up in the morning and immediately Online before drinking coffee.&lt;br /&gt;8. You must turn your head just to smile. :)&lt;br /&gt;9. You immediately know who you&#39;ll send this joke.</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/659270393725565723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2009/08/zaman-teknologi-informasi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/659270393725565723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/659270393725565723'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2009/08/zaman-teknologi-informasi.html' title='live in an information technology'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-5113573986174740765</id><published>2009-08-23T01:18:00.001-07:00</published><updated>2010-01-21T07:41:58.970-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Array</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgltL-KZnIADaLMADvGH2mNxYr5p1dyMl5pWHsrwp7YeFjU3LdiKxgM4Dm_1SXX6ORCFA_szYKogA0rxcPlsGfm9SAZq4jO7vglCetNm4OZ4Qexvkabbl-S7N5knMdJc2YpPmjVbK3qTds/s1600-h/array.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 173px; height: 44px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgltL-KZnIADaLMADvGH2mNxYr5p1dyMl5pWHsrwp7YeFjU3LdiKxgM4Dm_1SXX6ORCFA_szYKogA0rxcPlsGfm9SAZq4jO7vglCetNm4OZ4Qexvkabbl-S7N5knMdJc2YpPmjVbK3qTds/s200/array.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5428144464623745010&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Array can be interpreted as a sequence of data which is so easy to referenced. Variable used hrus directly referenced using the variable, it will be difficult if there is a lot of data to be processed simultaneously. For example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim a, b, c, d, e as integer&lt;br /&gt;...&lt;br /&gt;Console.writeline (a)&lt;br /&gt;Console.writeline (b)&lt;br /&gt;Console.writeline (c)&lt;br /&gt;Console.writeline (d)&lt;br /&gt;Console.writeline (e)&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;To display all of variables are necessary because the 5 statements each variable must be mentioned directly. By using the array, the repetition of these constraints can be overcome by using the help of the loop. Array declaration syntax is:&lt;br /&gt;&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim var_name (length) [as data_type]&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Or&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;&lt;br /&gt;Dim var_name ()&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;The first way is used to produce arrays with a fixed element, while the latter will result in an array without a fixed length. &lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Myadd Dim as string = &quot;192.168.1.31&quot;&lt;br /&gt;Dim result () as string = myadd.split&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Or&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim result (6) as string = myadd.spilt&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;By using the dynamic long array elements can be changed when the program starts by using redIm, but its elements will be reset again. To maintain the value of these arrays can be used redIm Preserve. &lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;RedIm Result (10)&lt;br /&gt;Preserve redIm Result (10)&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;By default, the array index starts pada.net 0 to length index. So the length of 5 will result in 6 elements (0,1,2,3,4,5). Next arrays can be used directly by accessing its index. &lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim i (5) as integer&lt;br /&gt;...&lt;br /&gt;Console.writeline (i (0))&lt;br /&gt;Console.writeline (i (1))&lt;br /&gt;Console.writeline (i (2))&lt;br /&gt;Console.writeline (i (3))&lt;br /&gt;Console.writeline (i (4))&lt;br /&gt;Console.writeline (i (5))&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;For each Clause&lt;br /&gt;For each loop is one that can be used di.Net, However the only useful to use arrays and collection scope. For each clause will make the loop as many elements of the array or collection without the need to specifically mention the specific length, and requires a variable with the type of data in accordance with the elements in the array or collection. Sintaxnya are:&lt;br /&gt;For each var_name [as data_type] in array_name&lt;br /&gt;Next&lt;br /&gt;Example&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim myarr () as Integer = (1,2,3,4)&lt;br /&gt;For each element as Integer in myarr&lt;br /&gt;Console.writeline (element)&lt;br /&gt;Next&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/5113573986174740765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2009/08/array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/5113573986174740765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/5113573986174740765'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2009/08/array.html' title='Array'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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/AVvXsEgltL-KZnIADaLMADvGH2mNxYr5p1dyMl5pWHsrwp7YeFjU3LdiKxgM4Dm_1SXX6ORCFA_szYKogA0rxcPlsGfm9SAZq4jO7vglCetNm4OZ4Qexvkabbl-S7N5knMdJc2YpPmjVbK3qTds/s72-c/array.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-553207871891212042.post-4061467968977069550</id><published>2009-08-23T01:17:00.001-07:00</published><updated>2010-01-21T07:45:06.678-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Procedure and function</title><content type='html'>- Procedure&lt;br /&gt;Procedure is a sub-program that does not return a value. Procedure is widely used for collection of frequently used commands but do not need to return a particular value&lt;br /&gt;Syntax:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Sub nmprocedure (parameters)&lt;br /&gt;Statements&lt;br /&gt;End Sub&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Even Numbers sub print ()&lt;br /&gt;For I as integer = 2 to 200 step 2&lt;br /&gt; Console.writeline (i)&lt;br /&gt;Next&lt;br /&gt;End Sub&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Dialing procedure done by writing the name of the procedure with the required parameters (if required).&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Sub main ()&lt;br /&gt;Console.writeline ( &quot;Program to write even number from 2-100&quot;)&lt;br /&gt;EvenNumbersprint ()&lt;br /&gt;end sub&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;- Function&lt;br /&gt;Function similar to procedure, but returns to the caller function. Function is widely used to classify the order to conduct a test or calculation of a value.&lt;br /&gt;&lt;br /&gt;Syntax:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Nmfunction function (parameters) as [data_type]&lt;br /&gt;Statements&lt;br /&gt;Return value&lt;br /&gt;End function&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Default:&lt;br /&gt;If not mentioned [as data_type] will be considered: as object&lt;br /&gt;Function must specify what data type will be returned to the caller and what the value will be returned in accordance with the type of data that has been mentioned. The value written to the command return is the overall value of the function.&lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;OddFunctionTest (ByVal x as integer) as Boolean&lt;br /&gt;If x mod 2 = 0 then&lt;br /&gt;Return false&lt;br /&gt;Else&lt;br /&gt;Return true&lt;br /&gt;End if&lt;br /&gt;End function&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Dialing function is done by writing a function with parameters with (if needed), and performed the function value storage. Could also function values do not need to be accommodated in one variable alone, However the direct use in selection or looping.&lt;br /&gt;&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Sub main ()&lt;br /&gt;Console.writeline ( &quot;The program determines an odd number&quot;)&lt;br /&gt;Console.writeline ( &quot;Enter a number:&quot;)&lt;br /&gt;Dim input as integer = console.readline ()&lt;br /&gt;If OddFunctionTest(input)&lt;br /&gt;Console.writeline ( &quot;Odd Numbers&quot;)&lt;br /&gt;Else&lt;br /&gt;Console.writeline ( &quot;Number is even&quot;)&lt;br /&gt;End if&lt;br /&gt;end sub&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;- Parameters&lt;br /&gt;Parameter is included in the data pemangilan function or procedure. The data will affect the performance of the procedure or function is called. How to spend (pass) parameters into the procedure there are two ways:&lt;br /&gt;a. Passing by value is a way of passing parameters by copying the value of a variable to the parameter. So if the value is changed parameters will not affect the original variable values.&lt;br /&gt;b. Passing by reference is a way of passing parameters by copying the memory address of the variable to the parameters. So if the value of these parameters changed, this will affect the initial value&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Sub procedure1 (ByVal a as integer, byref b as integer)&lt;br /&gt;A = A +2&lt;br /&gt;B = B +2&lt;br /&gt;End Sub&lt;br /&gt;Sub main ()&lt;br /&gt;Dim X, Y as integer&lt;br /&gt;X = 2&lt;br /&gt;Y = 2&lt;br /&gt;Procedure1 (X, Y)&lt;br /&gt;Console.writeline ( &quot;The value X:&quot; &amp; X)&lt;br /&gt;Console.writeline ( &quot;Value Y:&quot; &amp; Y)&lt;br /&gt;End Sub&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;The value X: 2&lt;br /&gt;Value Y: 4</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/4061467968977069550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2009/08/procedure-dan-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/4061467968977069550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/4061467968977069550'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2009/08/procedure-dan-function.html' title='Procedure and function'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-1673861663713470275</id><published>2009-08-23T01:15:00.000-07:00</published><updated>2010-01-21T07:47:40.065-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Looping</title><content type='html'>Loop is a looping technique where the programmer can repeat the command line in the source code as many times as desired. There are several known recurrence in the Visual Basic.Net language, among others:&lt;br /&gt;• For - Next&lt;br /&gt;Repetition is used when there is a repeated command line, and the number of repetitions has been known with certainty.&lt;br /&gt;Syntax:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;For variable = initvalue to maxvalue step increment / decrement&lt;br /&gt;Statement for loop&lt;br /&gt;[Exit For]&lt;br /&gt;Next&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Step is optional means can be written or not. If not written the default step value is 1. Step is used to increase the value of a variable each time the statement in the for-next repeat. Exit for a way to force out of the loop (optional).&lt;br /&gt;Example: Repetition of the smallest value to largest value&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim I as integer&lt;br /&gt;For i = 0 to 20 [step 1]&lt;br /&gt;Console.write (i)&lt;br /&gt;Next&lt;br /&gt;Repetition of the greatest value to the smallest value&lt;br /&gt;For I as integer = 20 to 0 step -1&lt;br /&gt;Console.write (i)&lt;br /&gt;Next&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Variables can also be directly declared in the for-next relevant as the above example. These variables will be local only for identified on the next.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;• Do while - loop&lt;br /&gt;Repetition is used if the number does not necessarily iterasinya. Usually the loop will be finished when found one or several conditions. Loop will be completed if the conditions mentioned in the false worth while.&lt;br /&gt;Syntax:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Do while condition&lt;br /&gt;Statement for loop&lt;br /&gt;[Exit Do]&lt;br /&gt;Loop&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Repetition will check the condition before starting the iteration. If the initial condition is not met, then the iteration can not be done at all.&lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim I as integer = 1&lt;br /&gt;Do while i &lt;5 integer =&quot; 1&quot;&gt; 5&lt;br /&gt;Console.writeline (i)&lt;br /&gt;I + = 1&lt;br /&gt;Loop&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;• Do - loop while&lt;br /&gt;Almost equal to do while - loops, but the condition will be checked at the end of the loop, so that if the initial condition one, the command line in the loop will still be done once before out of the loop.&lt;br /&gt;Syntax:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Do&lt;br /&gt;Statement for loop&lt;br /&gt;[Exit Do]&lt;br /&gt;Loop while condition&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Repetition is a condition check is done once after recurrence. If the initial condition is not met, then the statements inside the loop will only be done once.&lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim I as integer = 1&lt;br /&gt;Do&lt;br /&gt;Console.writeline (i)&lt;br /&gt;I + = 1&lt;br /&gt;Loop while (i&lt;=5) &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;• While - end while&lt;br /&gt;This form exactly do while - loops, only suffixes and how to get out of his force from the loop are different. Structure and flow in exactly the same.&lt;br /&gt;Syntax:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;While condition&lt;br /&gt;Statement for loop&lt;br /&gt;[Exit While]&lt;br /&gt;End while&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;&lt;br /&gt;Dim I as integer = 1&lt;br /&gt;While i &lt;5&lt;br /&gt;Console.writeline (i)&lt;br /&gt;I + = 1&lt;br /&gt;End while&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/1673861663713470275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2009/08/looping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/1673861663713470275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/1673861663713470275'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2009/08/looping.html' title='Looping'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-2686071463614666518</id><published>2009-08-23T01:14:00.000-07:00</published><updated>2010-01-21T07:49:42.965-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Selection</title><content type='html'>Conditional Selection statement or a statement requesting the computer to perform action selection based on a given condition. VB.Net syntax provides 2 options for branching action where each has his own purposes, namely:&lt;br /&gt;• If Clause&lt;br /&gt;If statement is a selection that is used with the consideration of a condition to do anything if the conditions are right and others may do if the condition is false. Syntax writing is&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;If condition then&lt;br /&gt;Action if Condition True&lt;br /&gt;End if&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;If you want to do something else if the condition is false then the syntaxnya are:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;If condition then&lt;br /&gt;Action if true condition&lt;br /&gt;Else&lt;br /&gt;Action if condition false&lt;br /&gt;End if&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;If only support for action 2 for 1 condition, if you want to give more than 2 action could be &quot;nested if&quot; (if in the if). His syntax becomes:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;If condition 1 then&lt;br /&gt;Action if true condition 1&lt;br /&gt;Else&lt;br /&gt;If condition 2 then&lt;br /&gt;Action if true condition 2&lt;br /&gt;Else If condition 3 then&lt;br /&gt;Action if condition and condition 2 false 3 true&lt;br /&gt;Else&lt;br /&gt;Action 3 if condition false&lt;br /&gt;End if&lt;br /&gt;End if&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;• Select case clause&lt;br /&gt;Select case statement is a selection that is used with the consideration of the value of a variable or of a condition. The syntax is:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Select case variable / condition&lt;br /&gt;Value Case 1: statement 1 if the value&lt;br /&gt;Value Case 2: statement 2 if the value&lt;br /&gt;Case 3 value: 3 value if statement&lt;br /&gt;Case else&lt;br /&gt;Statement if no value matched&lt;br /&gt;End select&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim q as integer = 2&lt;br /&gt;Strq as string Dim&lt;br /&gt;Select case q&lt;br /&gt;Case 1: strq = &quot;Bad Quality&quot;&lt;br /&gt;Case 2: strq = &quot;Average Quality&quot;&lt;br /&gt;Case 3: strq = &quot;Excellent Quality&quot;&lt;br /&gt;Case else&lt;br /&gt;Console.writeline ( &quot;No Such quality&quot;)&lt;br /&gt;End select&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/2686071463614666518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2009/08/selection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2686071463614666518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/2686071463614666518'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2009/08/selection.html' title='Selection'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-4426409937791813132</id><published>2009-08-23T01:12:00.001-07:00</published><updated>2010-01-21T07:51:08.967-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>Data type in VB 2005</title><content type='html'>Type the value that can be accommodated by a variable is determined at the time of declaration of variables. Influential in the amount of memory allocated for the variable. Examples of data types in Vb.net:&lt;br /&gt;Byte between 0-255&lt;br /&gt;Short limit value -32,768 - 32,767&lt;br /&gt;Integer limit value -2147483648 - 2147483647&lt;br /&gt;Long accommodate integers&lt;br /&gt;Single accommodate the real numbers&lt;br /&gt;Double accommodate the real numbers&lt;br /&gt;Accommodate decimal decimal&lt;br /&gt;Boolean holds true or false value&lt;br /&gt;Date accommodate the value of the date&lt;br /&gt;Char accommodate one character&lt;br /&gt;String holds more than characters&lt;br /&gt;&lt;br /&gt;Type casting / Convert between data types&lt;br /&gt;• Implicit conversion&lt;br /&gt;- Done automatically.&lt;br /&gt;- Occurs when converting from a smaller size to a larger size.&lt;br /&gt;- Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;&lt;br /&gt;Dim length as byte&lt;br /&gt;Length1 as integer Dim&lt;br /&gt;Length = 4&lt;br /&gt;Length1 = length&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;• Explicit conversion&lt;br /&gt;- Done by using the existing functions.&lt;br /&gt;- Occurs when converting from the type of data that are not similar.&lt;br /&gt;- Function: Cbool (), CDbl (), Cbyte (), Cchar (), Cdate () ...</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/4426409937791813132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2009/08/tipe-data-dalam-vbnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/4426409937791813132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/4426409937791813132'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2009/08/tipe-data-dalam-vbnet.html' title='Data type in VB 2005'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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-553207871891212042.post-5374531908001587727</id><published>2009-08-23T01:01:00.000-07:00</published><updated>2010-01-21T07:54:51.823-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic"/><title type='text'>VB.Net CA</title><content type='html'>Console Application is one type of application that can be made with the technology. Net. Is a text-based applications and is made if the application does not require a GUI. Example: The application server that served only to serve the client.&lt;br /&gt;&lt;br /&gt;Syntax Input Output&lt;br /&gt;Input and output operations are basic operations in programming.&lt;br /&gt;1. Console.write&lt;br /&gt;2. Console.writeline&lt;br /&gt;3. Console.read&lt;br /&gt;4. Console.readline&lt;br /&gt;5. Console.readkey&lt;br /&gt;&lt;br /&gt;&lt;a href&quot;http://andi-learn.blogspot.com/2010/01/variabel.html&quot;&gt;Variable&lt;/a&gt;&lt;br /&gt;A representation of the memory used to hold a value and that value can change during the program starts. Determined by the type of data. Distinction into two types: Local and Global. &lt;br /&gt;Declaration of variables&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim as&lt;/p&gt;&lt;br /&gt;• Example:&lt;br /&gt;&lt;p class=&quot;alert&quot;&gt;Dim totalEmployee As Integer &lt;br /&gt;Dim as String staffName&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Terms of naming variables:&lt;br /&gt;- Does not contain special characters&lt;br /&gt;- Not allowed to use the keyword&lt;br /&gt;- Containing numbers and not placed at the beginning.</content><link rel='replies' type='application/atom+xml' href='http://andi-learn.blogspot.com/feeds/5374531908001587727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andi-learn.blogspot.com/2009/08/vbnet-ca.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/5374531908001587727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/553207871891212042/posts/default/5374531908001587727'/><link rel='alternate' type='text/html' href='http://andi-learn.blogspot.com/2009/08/vbnet-ca.html' title='VB.Net CA'/><author><name>Andi</name><uri>http://www.blogger.com/profile/11739588000964987621</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>