You are on page 1of 8

List Program

Private Sub Command1_Click() If Not ((Text1.Text = 0 Or Text1.Text = 1) And (Text2.Text = 0 Or Text2.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text1.Text = 1 And Text2.Text = 1 Then Text3.Text = 1 Else Text3.Text = 0 End If End If End Sub

Private Sub Command2_Click() If Not ((Text1.Text = 0 Or Text1.Text = 1) And (Text2.Text = 0 Or Text2.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text1.Text = 0 And Text2.Text = 0 Then Text3.Text = 0 Else Text3.Text = 1 End If End If End Sub

Private Sub Command3_Click() If Not ((Text1.Text = 0 Or Text1.Text = 1) And (Text2.Text = 0 Or Text2.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text1.Text = 0 Then Text3.Text = 1 Else Text3.Text = 0 End If End If End Sub

Private Sub Command4_Click() If Not ((Text1.Text = 0 Or Text1.Text = 1) And (Text2.Text = 0 Or Text2.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text1.Text = 1 And Text2.Text = 1 Then Text3.Text = 0 Else Text3.Text = 1 End If End If End Sub

Private Sub Command5_Click() If Not ((Text1.Text = 0 Or Text1.Text = 1) And (Text2.Text = 0 Or Text2.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text1.Text = 0 And Text2.Text = 0 Then Text3.Text = 1 Else Text3.Text = 0 End If End If End Sub

Private Sub Command6_Click() If Not ((Text1.Text = 0 Or Text1.Text = 1) And (Text2.Text = 0 Or Text2.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If (Text1.Text = 1 And Text2.Text = 1) Or (Text1.Text = 0 And Text2.Text = 0) Then Text3.Text = 0 Else Text3.Text = 1 End If End If End Sub

Private Sub Command7_Click() If Not ((Text1.Text = 0 Or Text1.Text = 1) And (Text2.Text = 0 Or Text2.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If (Text1.Text = 1 And Text2.Text = 1) Or (Text1.Text = 0 And Text2.Text = 0) Then Text3.Text = 1 Else Text3.Text = 0 End If End If End Sub

Private Sub Command8_Click() If Not ((Text3.Text = 0 Or Text3.Text = 1) And (Text4.Text = 0 Or Text4.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text3.Text = 1 And Text4.Text = 1 Then Text5.Text = 1 Else Text5.Text = 0 End If End If End Sub

Private Sub Command9_Click() If Not ((Text3.Text = 0 Or Text3.Text = 1) And (Text4.Text = 0 Or Text4.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text3.Text = 0 And Text4.Text = 0 Then Text5.Text = 0 Else Text5.Text = 1 End If End If End Sub

Private Sub Command10_Click() If Not ((Text3.Text = 0 Or Text3.Text = 1) And (Text4.Text = 0 Or Text4.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text3.Text = 0 Then Text5.Text = 1 Else Text5.Text = 0 End If End If End Sub

Private Sub Command11_Click() If Not ((Text3.Text = 0 Or Text3.Text = 1) And (Text4.Text = 0 Or Text4.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text3.Text = 1 And Text4.Text = 1 Then Text5.Text = 0 Else Text5.Text = 1 End If End If End Sub

Private Sub Command12_Click() If Not ((Text3.Text = 0 Or Text3.Text = 1) And (Text4.Text = 0 Or Text4.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If Text3.Text = 0 And Text4.Text = 0 Then Text5.Text = 1 Else Text5.Text = 0 End If End If End Sub

Private Sub Command13_Click() If Not ((Text3.Text = 0 Or Text3.Text = 1) And (Text4.Text = 0 Or Text4.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If (Text3.Text = 1 And Text4.Text = 1) Or (Text3.Text = 0 And Text4.Text = 0) Then Text5.Text = 0 Else Text5.Text = 1 End If End If End Sub

Private Sub Command14_Click() If Not ((Text3.Text = 0 Or Text3.Text = 1) And (Text4.Text = 0 Or Text4.Text = 1)) Then MsgBox "Silahkan input biner!!!" Else If (Text3.Text = 1 And Text4.Text = 1) Or (Text3.Text = 0 And Text4.Text = 0) Then Text5.Text = 1 Else Text5.Text = 0 End If End If End Sub

Private Sub Command15_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" End Sub

Private Sub Command16_Click() End End Sub

You might also like