You are on page 1of 2

Dim lft As Integer

Dim ryt As Integer

Private Sub a_Click()

lft = Val(o.Text)
ryt = Val(p.Text)
bataleft
bataryt
bataboth
pwede
lalaman

End Sub
Sub lalaman()
If z.Text = "" Then
Beep
keigh.Caption = "PERSON1 has no NAME!!!"
z.SetFocus
ElseIf o.Text = "" Then
Beep
keigh.Caption = "PERSON1 has no AGE!!!"
ElseIf q.Value = False And w.Value = False Then
Beep
keigh.Caption = "PERSON1 has no SEX!!!"
ElseIf x.Text = "" Then
Beep
keigh.Caption = "PERSON2 has no NAME!!!"
x.SetFocus
ElseIf p.Text = "" Then
Beep
keigh.Caption = "PERSON2 has no AGE!!!"
ElseIf e.Value = False And r.Value = False Then
Beep
keigh.Caption = "PERSON2 has no SEX!!!"
End If

End Sub

Private Sub b_Click()


End
End Sub

Sub bataleft()
If lft < ryt Then
keigh.Caption = "Di pwede mas bata si " + z.Text
If q.Value = e.Value Or w.Value = r.Value Then
keigh.Caption = keigh.Caption + ". Same sex Pa kayu!"
End If
End If

End Sub
Sub bataryt()
If ryt < lft Then
keigh.Caption = "Di pwede mas bata si " + x.Text
If q.Value = e.Value Or w.Value = r.Value Then
keigh.Caption = keigh.Caption + ". Same sex Pa kayu!"
End If
End If

End Sub
Sub bataboth()
If lft < 18 And ryt < 18 Then

If lft = ryt Then


keigh.Caption = "My gatas pa kayu sa labi!"
If q.Value = e.Value Or w.Value = r.Value Then
keigh.Caption = keigh.Caption + ". Same sex Pa kayu!"
End If
End If
End If
End Sub

Sub pwede()
If lft >= 18 And ryt >= 18 Then
keigh.Caption = "Sige na nga pakasal na kayu!"
If q.Value = e.Value Or w.Value = r.Value Then
keigh.Caption = "Bawal same sex dito! umayus ka!!"
End If
End If

End Sub
Sub parehobata()
If lft < 18 And ryt < 18 Then
If lft = ryt Then
keigh.Caption = "opps! parehong Under age!"
If q.Value = e.Value Or w.Value = r.Value Then
keigh.Caption = keigh.Caption + " at! Same SEX pah!"
End If
End If
End If

End Sub