Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Option Explicit
  2. Dim points As Integer
  3. Dim pass As Integer
  4. Dim all As Integer
  5.  
  6. Private Sub Label1_Click()
  7.  
  8. End Sub
  9.  
  10. Private Sub Cmd_End_Click()
  11.  
  12. points = 0
  13.  
  14. If (Opt_Ravak.Value = False And Opt_Nasoy.Value = False And Opt_Garush.Value = False And Opt_Alman.Value = False) Then
  15.     Dim shgiatStatus As String
  16.     shgiatStatus = MsgBox("לא הוכנס מצב משפחתי", vbCritical, "שגיאה")
  17. End If
  18.  
  19. If (Opt_Ad25.Value = False And Opt_Ben25Le45.Value = False And Opt_45Plus.Value = False) Then
  20. Dim shgiatGil As String
  21.     shgiatGil = MsgBox("לא הוכנס גיל", vbCritical, "שגיאה")
  22.    
  23. End If
  24.  
  25. If (Opt_Nasoy.Value = True) Then
  26. points = points + 12
  27. ElseIf (Opt_Alman.Value = True Or Opt_Garush.Value = True Or Opt_Ravak.Value = True) Then
  28. points = points + 10
  29. End If
  30.  
  31. If (Opt_Ad25.Value = True) Then
  32.  points = points + 15
  33.  
  34.  ElseIf (Opt_Ben25Le45) Then
  35.   points = points + 20
  36.  
  37.   Else
  38.   points = points + 13
  39.  
  40. End If
  41.  
  42. If (Chk_Abroad.Value = True) Then points = points + 15
  43.  
  44. If (Chk_Aretz.Value = True) Then points = points + 10
  45.  
  46.  
  47. If (Opt_Male.Value = True And points >= 30) Then
  48. Lbl_passOrNot.Caption = "עבר"
  49. pass = pass + 1
  50. End If
  51.  
  52. If (Opt_Female.Value = True And points >= 30) Then
  53. Lbl_passOrNot.Caption = "עברה"
  54. pass = pass + 1
  55. End If
  56.  
  57. all = all + 1
  58.  
  59. Opt_Ravak.Value = False
  60. Opt_Nasoy.Value = False
  61. Opt_Alman.Value = False
  62. Opt_Garush.Value = False
  63. Opt_Ad25.Value = False
  64. Opt_Ben25Le45.Value = False
  65. Opt_45Plus.Value = False
  66. Chk_Aretz.Value = False
  67. Chk_Abroad.Value = False
  68. Opt_Male.Value = False
  69. Opt_Female.Value = False
  70. Dim name As String
  71. name = InputBox("הכנס את שם המועמד", "מועמד חדש")
  72. Txt_Moamad.Text = "המועמד: " + name
  73.  
  74.  
  75. End Sub
  76.  
  77. Private Sub Form_Load()
  78. Opt_Ravak.Value = False
  79. Opt_Nasoy.Value = False
  80. Opt_Alman.Value = False
  81. Opt_Garush.Value = False
  82. Opt_Ad25.Value = False
  83. Opt_Ben25Le45.Value = False
  84. Opt_45Plus.Value = False
  85. Chk_Aretz.Value = False
  86. Chk_Abroad.Value = False
  87. Opt_Male.Value = False
  88. Opt_Female.Value = False
  89. Dim name As String
  90. name = InputBox("הכנס את שם המועמד", "מועמד חדש")
  91. Txt_Moamad.Text = "המועמד: " + name
  92. pass = 0
  93. all = 0
  94. End Sub
  95.  
  96. Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)
  97.  
  98. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement