Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form5
- Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
- Dim str1, str2 As String
- str1 = "This is Test"
- str2 = "This is Test"
- If (String.Compare(str1, str2) = 0) Then
- Console.WriteLine(str1 + " and " + str2 + " are equal.")
- Else
- Console.WriteLine(str1 + " and " + str2 + " are not equal ")
- End If
- Console.ReadLine()
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement