How Automation Compares Strings

This appendix describes how Automation compares strings. These comparisons are important when creating applications that support national language accents and digraphs. The information in this appendix applies to the following:

When comparing strings, Automation components use the following rules:

  • Comparisons are sensitive to locale, based on the string's locale identifier (LCID). A string must have an LCID that is supported by the application or type library. For more information about locales and LCIDs, see Locales and Language Identifier Constants and Strings.

  • Accent characters are ignored. For example, the "á" string compares the same as "a".

  • Case is ignored. For example, the string "A" compares the same as "a".

  • Comparisons are sensitive to digraphs. For example, the "Æ" string is not the same as "AE".

  • For Japanese, Korean, and Chinese locales, ITypeLib::FindName and IDispatch::GetIDsOfNames ignore width and kanatype.

Appendices

Automation Programming Reference