Guest User

Untitled

a guest
Jan 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. Dim suma1, suma2, suma3 As Integer
  2.  
  3.  
  4. Private Sub Command1_Click()
  5. If Combo1.ListIndex = 0 Then Text1 = 2345
  6. If Combo1.ListIndex = 1 Then Text1 = 3456
  7. If Combo1.ListIndex = 2 Then Text1 = 4567
  8. If Combo1.ListIndex = 3 Then Text1 = 5678
  9. If Option1 = True Then
  10. Text2 = Text1
  11. End If
  12. If Option2 = True Then
  13. Text2 = Text1 + ((Text1 * 4) / 100)
  14. End If
  15. If Option3 = True Then
  16. Text2 = Text1 + ((Text1 * 10) / 100)
  17. End If
  18. If Option4 = True Then
  19. Text2 = Text1 + ((Text1 * 21) / 100)
  20. End If
  21. If Option5 = True Then
  22. Text2 = Text1 + ((Text1 * 21) / 100)
  23. End If
  24. If Option6 = True Then
  25. Text2 = Text1 + ((Text1 * 10) / 100)
  26. End If
  27.  
  28.  
  29.  
  30. End Sub
  31.  
  32. Private Sub Form_Load()
  33. Combo1.AddItem "Television"
  34. Combo1.AddItem "Compu"
  35. Combo1.AddItem "Celular"
  36. Combo1.AddItem "DVD"
  37. Combo2.AddItem "Zapallo"
  38. Combo2.AddItem "Dulce de Leche"
  39. Combo2.AddItem "Banana"
  40. Combo2.AddItem "Lavandina"
  41.  
  42. End Sub
Add Comment
Please, Sign In to add comment