<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rizq Technology - Exploring Your iDea. &#187; if else</title>
	<atom:link href="http://rizqtech.net/tag/if-else/feed/" rel="self" type="application/rss+xml" />
	<link>http://rizqtech.net</link>
	<description>All about My Experiences, Knowledge and Thoughts.</description>
	<lastBuildDate>Sat, 14 Jan 2012 17:20:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Delphi Basic#2</title>
		<link>http://rizqtech.net/2009/04/19/delphi-basic2/</link>
		<comments>http://rizqtech.net/2009/04/19/delphi-basic2/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 08:04:53 +0000</pubDate>
		<dc:creator>Rizky</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[if else]]></category>

		<guid isPermaLink="false">http://rizqtech.net/?p=518</guid>
		<description><![CDATA[Bagaimana mencari atau selection pada Delphi, berikut contoh di bawah ini menggunakan ekspresi &#8220;IF ELSE&#8221; Case-nya : Bagaimana menentukan Hari Berdasarkan Bilangan yang di input ? unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Label1: TLabel; Label2: TLabel; nilai: TEdit; Button1: TButton; procedure Button1Click(Sender: TObject); [...]]]></description>
			<content:encoded><![CDATA[<p>Bagaimana mencari atau selection pada Delphi, berikut contoh di bawah ini menggunakan ekspresi &#8220;IF ELSE&#8221;</p>
<p>Case-nya : Bagaimana menentukan Hari Berdasarkan Bilangan yang di input ?</p>
<pre name="code" class="delphi">
unit Unit1;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, StdCtrls;

type

TForm1 = class(TForm)

Label1: TLabel;

Label2: TLabel;

nilai: TEdit;

Button1: TButton;

procedure Button1Click(Sender: TObject);

private

{ Private declarations }

public

{ Public declarations }

end;

var

Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);

begin

if nilai.text=’1? then

begin

label2.Caption:=’Senin’;

end

else if nilai.text=’2? then

begin

label2.Caption:=’Selasa’;

end

else if nilai.text=’3? then

begin

label2.Caption:=’Rabu’;

end

else if nilai.text=’4? then

begin

label2.Caption:=’Kamis’;

end

else if nilai.text=’5? then

begin

label2.Caption:=’Jumat’;

end

else if nilai.text=’6? then

begin

label2.Caption:=’Sabtu’;

end

else if nilai.text=’7? then

begin

label2.Caption:=’Minggu’;

end else

label2.Caption:=’Inputan anda Salah !’;

end;

end.
</pre>
<p class="MsoNormal">SCREENSHOOT BELOW :</p>
<p class="MsoNormal"><img class="size-full wp-image-519 alignleft" title="hari-if" src="http://rizqtech.net/wp-content/uploads/2009/04/hari-if.jpg" alt="hari-if" width="563" height="332" /></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Frizqtech.net%2F2009%2F04%2F19%2Fdelphi-basic2%2F';
  addthis_title  = 'Delphi+Basic%232';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<h3  class="related_post_title">Related Post </h3><ul class="related_post"><li><a href="http://rizqtech.net/2009/04/26/delphi-basic5/"  title="Delphi Basic#5">Delphi Basic#5</a></li><li><a href="http://rizqtech.net/2009/04/19/delphi-basic3/"  title="Delphi Basic#3">Delphi Basic#3</a></li><li><a href="http://rizqtech.net/2009/03/24/4gl-multi-tier-with-delphi/"  title="Delphi Basic#1">Delphi Basic#1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rizqtech.net/2009/04/19/delphi-basic2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

