OverviewExamples
compare_result = String.CompareNoCase("John", "Mary");
Compares the string "John" to the string "Mary" and stores the result in the variable "compare_result." Since "John" is less than "Mary", the number -1 would be returned.
IsBigger = String.CompareNoCase("Bob", "Bob");
Compares the string "Bob" to the second string "Bob" and stores the result in the variable "IsBigger." Since both strings are the same, the number 0 would be returned.
IsSame = String.CompareNoCase("BOB", "bob");
Compares the string "BOB" to the second string "bob" and stores the result in the variable "IsSame." Since the comparison is case-insensitive, the strings are the same, therefore the number 0 would be returned.
See also: Related Actions