Causes strings to be compared based on their text representations.
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
- Open the project's Property Pages dialog box. For details, see <Projectname> Property Pages Dialog Box.
- Click the Common Properties folder.
- Click the Build property page.
- Modify the Option Compare property.
To set /optioncompare:text programmatically
The following code compiles
myfile.vb and uses text-based string comparisons:
vbc /optioncompare:text myfile.vb