Causes strings to be compared based on their binary representations.
/optioncompare:binary
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 < ? < ? < ? < ? < ? < ?
To set /optioncompare:binary in the Visual Studio integrated development environment
To set /optioncompare:binary programmatically
The following code compiles myfile.vb
and uses binary string comparisons:
vbc /optioncompare:binary myfile.vb