Advertisement
Rhull1188

rhull18

Oct 24th, 2022
2,019
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VBScript 1.01 KB | Source Code | 0 0
  1. Private Sub Command1_Click()
  2. Dim unit As Integer
  3. unit = Text1.Text
  4.  
  5. Select Case unit
  6. Case Is < 5 And Check1.Value = 1
  7. Label1.Caption = (Val(Text1.Text) * 50) - ((Val(Text1.Text) * 50) * 0.1)
  8. Case Is < 5 And Check1.Value = 0
  9. Label1.Caption = Val(Text1.Text) * 50
  10. Case Is < 10 And Check1.Value = 1
  11. Label1.Caption = (Val(Text1.Text) * 45) - ((Val(Text1.Text) * 45) * 0.1)
  12. Case Is < 10 And Check1.Value = 0
  13. Label1.Caption = Val(Text1.Text) * 45
  14. Case Is < 20 And Check1.Value = 1
  15. Label1.Caption = (Val(Text1.Text) * 40) - ((Val(Text1.Text) * 40) * 0.1)
  16. Case Is < 20 And Check1.Value = 0
  17. Label1.Caption = Val(Text1.Text) * 40
  18. Case Is < 50 And Check1.Value = 1
  19. Label1.Caption = (Val(Text1.Text) * 35) - ((Val(Text1.Text) * 35) * 0.1)
  20. Case Is < 50 And Check1.Value = 0
  21. Label1.Caption = Val(Text1.Text) * 35
  22. Case Is > 50 And Check1.Value = 1
  23. Label1.Caption = (Val(Text1.Text) * 30) - ((Val(Text1.Text) * 30) * 0.1)
  24. Case Is > 50 And Check1.Value = 0
  25. Label1.Caption = Val(Text1.Text) * 30
  26. End Select
  27.  
  28. End Sub
  29.  
  30.  
  31.  
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement