Name

StrComp Function — Microsoft.VisualBasic.Strings

Synopsis

StrComp(string1, string2[, compare])
string1 required; String

Any string expression

string2 required; String

Any string expression

compare optional; CompareMethod constant

Either CompareMethod.Binary or CompareMethod.Text

Return Value

Integer

Description

Determines whether two strings are equal and, if not, which of two strings has the greater value.

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.