Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Dim intWeight, intLength, intWidth, intHeight As Integer
  2. intWeight = Val(txtWeight.Text)
  3. intLength = Val(txtLength.Text)
  4. intWidth = Val(txtWidth.Text)
  5. intHeight = Val(txtHeight.Text)
  6. If (intLength * intWidth * intHeight) <= 100000 And intWeight <= 27 Then
  7. Me.lblAnswer.Text = "Accepted"
  8. ElseIf (intLength * intWidth * intHeight) > 100000 And intWeight <= 27 Then
  9. Me.lblAnswer.Text = "Rejected: Too big, but not too heavy"
  10. ElseIf (intLength * intWidth * intHeight) <= 100000 And intWeight > 27 Then
  11. Me.lblAnswer.Text = "Rejected: Too heavy, but not too big"
  12. ElseIf intWeight > 27 Then
  13. Me.lblAnswer.Text = "Rejected: Too Heavy"
  14. ElseIf (intLength * intWidth * intHeight) > 100000 Then
  15. Me.lblAnswer.Text = "Rejected: Too big"
  16. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement