Advertisement
Luciano_fuentes

Untitled

Jan 8th, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. Option Explicit
  2.  
  3. Private Sub Check2_Click()
  4. txt_pociones.Enabled = Not txt_pociones.Enabled
  5. End Sub
  6.  
  7. Private Sub cmd_cancelar_Click()
  8. Unload Me
  9. End Sub
  10.  
  11. Private Sub cmd_Retar_Click()
  12. If Not IsNumeric(txt_oro.Text) Or Not IsNumeric(oro_2vs2.Text) Then
  13. Call MsgBox("El oro tiene que ser valor numérico", vbCritical, "Error")
  14. txt_oro.Text = 1
  15. Exit Sub
  16. End If
  17.  
  18. If IsNumeric(txt_oponente.Text) Or IsNumeric(oponente1_txt.Text) Or IsNumeric(oponente2.txt.Text) Then
  19. Call MsgBox("Nombre inválido.", vbCritical, "Error")
  20. txt_oponente.Text = vbNullString
  21. Exit Sub
  22. End If
  23.  
  24. If option_1vs1.value = True Then
  25. Call WriteEnviarReto1vs1(txt_oponente.Text, CLng(txt_oro.Text), check_objetos.value)
  26. ElseIf option_2vs2.value = True Then
  27. Call WriteSendReto(pareja_Txt.Text, oponente1_txt.Text, oponente2_txt.Text, CLng(oro_2vs2.Text), check_objetos2vs2.value, IIf(IsNumeric(txt_pociones2vs2.Text), CInt(txt_pociones2vs2.Text), 0))
  28. End If
  29.  
  30. Unload Me
  31. End Sub
  32.  
  33. Private Sub Form_Load()
  34. option_1vs1.value = True
  35. End Sub
  36.  
  37. Private Sub option_1vs1_Click()
  38. option_2vs2.value = Not option_2vs2.value
  39. frame_1vs1.Visible = Not frame_1vs1.Visible
  40. frame_2vs2.Visible = Not frame_2vs2.Visible
  41. End Sub
  42.  
  43. Private Sub option_2vs2_Click()
  44. option_1vs1.value = Not option_1vs1.value
  45. frame_1vs1.Visible = Not frame_1vs1.Visible
  46. frame_2vs2.Visible = Not frame_2vs2.Visible
  47. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement