pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Advertising: Credit Counseling - Loans - mobile phones - Loans
paste-bin - collaborative debugging tool View Help

Posted by Anonymous on Thu 1st Nov 09:17 (modification of post by view diff)
download | new post

  1.  
  2. Private Sub Command1_Click()
  3.    
  4.  If Pic2.Visible = True Then
  5.         Dim msgOutcome As VbMsgBoxResult
  6.         msgOutcome = MsgBox("Bulbasaur Is Already Out!" & vbCrLf & "Would you like to choose another Pokemon?", vbExclamation Or vbYesNo, "Error")
  7.         Select Case msgOutcome
  8.             Case vbYes
  9.                 Pic2.Visible = False
  10.                 Command7.Visible = False
  11.                 Command8.Visible = False
  12.                 Command9.Visible = False
  13.                 Command10.Visible = False
  14.                 Label5.Visible = False
  15.                 Rich1.Text = Rich1.Text & "Come back Bulbasaur!" & vbCrLf
  16.                 Rich1.Text = Rich1.Text & "Bulbasaur Came Back" & vbCrLf
  17.                
  18.                 'Yes has been chosen do stuff here
  19.                
  20.             Case vbNo
  21.                 Pic2.Visible = True
  22.                 'No has been chosen do stuff here
  23.         End Select
  24.     Else
  25.         Rich1.Text = Rich1.Text & "GOOO Bulbasaur!" & vbCrLf
  26.         Pic2.Visible = True
  27.         Command7.Visible = True
  28.         Command8.Visible = True
  29.         Command9.Visible = True
  30.         Command10.Visible = True
  31.         Label5.Visible = True
  32.     End If
  33. End Sub
  34.  
  35. Private Sub Command2_Click()
  36.  
  37. If Pic1.Visible = True Then
  38.         Dim msgOutcome As VbMsgBoxResult
  39.         msgOutcome = MsgBox("Squirtle Is Already Out!" & vbCrLf & "Would you like to choose another Pokemon?", vbExclamation Or vbYesNo, "Error")
  40.         Select Case msgOutcome
  41.             Case vbYes
  42.                 Pic1.Visible = False
  43.                 Command3.Visible = False
  44.                 Command4.Visible = False
  45.                 Command5.Visible = False
  46.                 Command6.Visible = False
  47.                 Label4.Visible = False
  48.                 Rich1.Text = Rich1.Text & "Come back Squirtle!" & vbCrLf
  49.                 Rich1.Text = Rich1.Text & "Squirtle Came Back" & vbCrLf
  50.                
  51.                 'Yes has been chosen do stuff here
  52.                
  53.             Case vbNo
  54.                 Pic1.Visible = True
  55.                 'No has been chosen do stuff here
  56.         End Select
  57.     Else
  58.         Rich1.Text = Rich1.Text & "GOOO Squirtle!" & vbCrLf
  59.         Pic1.Visible = True
  60.         Command3.Visible = True
  61.         Command4.Visible = True
  62.         Command5.Visible = True
  63.         Command6.Visible = True
  64.         Label4.Visible = True
  65.     End If
  66.    
  67.     End Sub
  68.  
  69. Private Sub Command4_Click()
  70.     MsgBox "You chose Bubble!", vbOKOnly, "Attack Type"
  71.     Rich1.Text = Rich1.Text & "Squirtle Did Bubble!" & vbCrLf
  72. End Sub
  73.  
  74. Private Sub Form_Load()
  75.     Pic1.Visible = False
  76.     Pic2.Visible = False
  77.     Command5.Visible = False
  78.     Command6.Visible = False
  79.     Command7.Visible = False
  80.     Command8.Visible = False
  81.     Command9.Visible = False
  82.     Command10.Visible = False
  83.     Command4.Visible = False
  84.     Command3.Visible = False
  85.     Label4.Visible = False
  86.     Label5.Visible = False
  87. End Sub

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me
: