Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
  2.  
  3. Dim a, b As String
  4.  
  5. txtBox.Clear()
  6.  
  7. a = "A"
  8.  
  9. b = "B"
  10.  
  11. PrintWords(a, b)
  12.  
  13. PrintWords(b, a)
  14.  
  15. End Sub
  16.  
  17. Private Sub btnKatButton_Click(...) Handles btnKatButton.Click
  18. txtBox.Text = "This shouldn't say "
  19. Print("Hello", " World")
  20. 'txtBox.Text will have in it: "This shouldn't say Hello World"
  21. KatPrint("Hello", " World")
  22. 'txtBox.Text will have in it: "Hello World"
  23. End Sub
  24.  
  25. Private Sub KatPrint(ByVal first As String, ByVal second As String)
  26. txtBox.Text = first & second
  27. End Sub
  28.  
  29. Sub PrintWords(ByVal a As String, ByVal b As String)
  30.  
  31. txtBox.Text &= a & b
  32.  
  33. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement