how to compare two string in .net

Posted by Shanky11 under C# on 4/5/2013 | Points: 10 | Views : 1885 | Status : [Member] | Replies : 0
Dim str1 As String = "ppp"
Dim str2 As String = "ppP"
Dim res As Int64 = String.Compare(str1, str2)
Label1.Text = "First result:" + res.ToString()
this return 1
but 1 means true then why its returning 1 rather than it sholud return 0




Responses

(No response found.)

Login to post response