Monday, 12 March 2012 string compare()?

How to string compare() in
I this tutorial you can learn how to compare two given string (comparison in numbers(integer format)) , syntax for comapare str,string str2,boolen as integer)
Here : Stràfisrt string
Str2àsecond string
Boolenàtrue or false
String à string data type
Ex: str =,str2)
To check str1>str2=greater than zero
Str2>str1= less than zero
  To do this program following steps to be followed
Open Microsoft visual studio 2010 or any older version also may differ commands
Open file new project(ctrl+shift+n)àselect windows form applicationà rename as you wish
Drag and drop two label, textbox, and one button
Label1.textà1st string
Label2.textà2nd string
Copy and paste the following code
Public Class Form1
    Private SubButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesButton1.Click
        Dim ststring As String = TextBox1.Text
        Dim ndbstring As String = TextBox2.Text
        Dim result_in_integer AsInteger
        'result_in_integer = String.Compare(TextBox1.Text, TextBox2.Text)
        result_in_integer = String.Compare(TextBox1.Text, TextBox2.Text, True)

    End Sub
End Class