📜  vba 忽略大小写 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:55.554000             🧑  作者: Mango

代码示例2
'Removes case sensitivity
Option Compare Text            ' a < B
'Adds case sensitivity
Option Compare Binary        ' A < B < a < b
'Compare
Debug.Print StrComp(string1, string2, vbUseCompareOption) 'Microsoft Access only
Debug.Print StrComp(string1, string2, vbBinaryCompare)      'case sensitive
Debug.Print StrComp(string1, string2, vbTextCompare)      'case insensitive