AnonymousEng

Midterm 2014 - Question 3

Jun 9th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' To see the GUI in action please go to these links
  2. ' http://i.imgur.com/SDh9diz.png
  3. ' http://i.imgur.com/P57go6x.png
  4. ' http://i.imgur.com/05QCp6k.png
  5.  
  6. Private Sub Command1_Click()
  7.     'Clear the form
  8.    Cls
  9.    
  10.     Dim dev_type As String
  11.     Dim os_type As String
  12.    
  13.     'clear the variables :)
  14.    dev_type = ""
  15.     os_type = ""
  16.    
  17.     If Option1 = True Then dev_type = Option1.Caption
  18.     If Option2 = True Then dev_type = Option2.Caption
  19.     If Option3 = True Then dev_type = Option3.Caption
  20.     If Option4 = True Then dev_type = Option4.Caption
  21.        
  22.     If Option5 = True Then os_type = Option5.Caption
  23.     If Option6 = True Then os_type = Option6.Caption
  24.     If Option7 = True Then os_type = Option7.Caption
  25.     If Option8 = True Then os_type = Option8.Caption
  26.    
  27.     If dev_type = "" And os_type = "" Then
  28.         MsgBox ("Device or OS is not Selected")
  29.     Else
  30.         Print "Your Device: " + dev_type + " ,And The OS: " + os_type
  31.     End If
  32.    
  33. End Sub
Advertisement
Add Comment
Please, Sign In to add comment