Causes strings to be compared based on their text representations.
/optioncompare:text
Text-based string comparisons are based on a case-insensitive text sort order determined by your system's locale. A typical text sort order is shown in the following example:
(A=a) < ( ?=?) < (B=b) < (E=e) < (?=?) < (Z=z) < (?=?)
To set /optioncompare:text in the Visual Studio integrated development environment
To set /optioncompare:text programmatically
The following code compiles myfile.vb
and uses text-based string comparisons:
vbc /optioncompare:text myfile.vb