Posts

Showing posts from May 8, 2013

fungsi if

If...Then kode ini peru bagi yang jawab salah tidak muncul msgbox If perintah Then fungsi End If contoh If Text2.Text = "klik 'jawab' sekarang" Then End End If jika user klik fungsi if maka: jika sesuai  dengan perintahnya maka akan mengeruarkan fungsi jika tidak sesuai  dengan perintahnya maka biasa saja If...Then... Else If  perintah  Then fungsi Else fungsi End If contoh If  Text1.Text = "" Then Text2.Text = "masukan jawabannya" Else Text2.Text = "jawabannya salah" End If Nested    If...Then... Else If  perintah  Then fungsi Else If  perintah  Then fungsi seterusnya... Else fungsi End If End If seterusnya... contoh If Text1.Text = "" Then Text2.Text = "masukan jawabannya" Else If Text1.Text = "jakarta" Then Text2.Text = "klik 'jawab' sekarang" Else Text2.Text = "jawabannya salah" End If End If perintah * :  Text1.Text = "" fungsi * : end * maaf cuman beri contoh saja

fungsi if

If...Then kode ini peru bagi yang jawab salah tidak muncul msgbox If perintah Then fungsi End If contoh If Text2.Text = "klik 'jawab' sekarang" Then End End If jika user klik fungsi if maka: jika sesuai  dengan perintahnya maka akan mengeruarkan fungsi jika tidak sesuai  dengan perintahnya maka biasa saja If...Then... Else If  perintah  Then fungsi Else fungsi End If contoh If  Text1.Text = "" Then Text2.Text = "masukan jawabannya" Else Text2.Text = "jawabannya salah" End If Nested    If...Then... Else If  perintah  Then fungsi Else If  perintah  Then fungsi seterusnya... Else fungsi End If End If seterusnya... contoh If Text1.Text = "" Then Text2.Text = "masukan jawabannya" Else If Text1.Text = "jakarta" Then Text2.Text = "klik 'jawab' sekarang" Else Text2.Text = "jawabannya sala