Visual Basic Compiler Options  

/optioncompare:binary

Causes strings to be compared based on their binary representations.

/optioncompare:binary

Remarks

In Microsoft Windows, the code page being used determines the binary sort order. A typical binary sort order is shown in the following example:

A < B < E < Z < a < b < e < z < À < Ê < Ø < à < ê < ø

Example

The following code compiles myfile.vb and uses binary string comparisons:

vbc /optioncompare:binary myfile.vb

See Also

Visual Basic Compiler Options | /optioncompare:text | /optionstrict | /optionexplicit | Sample Compilation Command Lines