Thursday, August 12, 2010

Visual Basic String Statement : Option Compare

Purpose : use the Option Compare statement to control how string comparisons are made.

Syntax :
Option Compare ( Binary | Text)

Visual Basic defaults to using a binary comparison method when comparing two string. binary comparisons are case sensitive, so " A " does not equal " a " . the relative order of characters is determined by their order in the ANSI character set.

Text comparisons are not case sensitive, so " A " does equal " a ".Furthermore , the relative order of characters is determined by the international section of WIN.INI.

No comments:

Post a Comment