Usually i use the if string1 = string 2 then .... method.
but it only performs case-sensitve comparisons. so i looked online and found this code:
however, when i paste it in my code, i get the error saying
Expected "("
and it points to the period in between String and Compare.
what am i doing incorrectly?
but it only performs case-sensitve comparisons. so i looked online and found this code:
Code:
compareResult = String.Compare(string1, string2, False, CultureInfo.InvariantCulture)
however, when i paste it in my code, i get the error saying
Expected "("
and it points to the period in between String and Compare.
what am i doing incorrectly?