This property sets to process lowercase letters as uppercase letters.
Syntax
object.CompareAsUpperCase = boolean
object
This specifies object expressions that define references to objects.
boolean
This sets whether to process lowercase letters as uppercase letters. As for the values to be set, refer to the following setting values.
Setting value
The setting values of CompareAsUpperCase property are as follows.
Setting value | Meaning |
---|---|
True | Lowercase letters are processed as uppercase letters. |
False | Lowercase letters and uppercase letters are processed separately. (Default value) |
Description
When True is specified, it is considered that lowercase letters are equal to uppercase letter. As a result, "a" and "A" are evaluated as smaller character than "b" and "B", and can collect character strings of the same alphabet. However, the order of "a" and "A" is irregular.
When this specification is omitted, the order is decided by each character code.
The value specified in this property is valid when the key field of the sort processing (DisposalNumber = 0) or merge processing (DisposalNumber = 1) in the text file is omitted.
Information
The difference of the sort by setting value of the CompareAsUpperCase property is shown below.
The order when specifying True | A-> a-> b-> B..-> y-> Y-> Z-> z (Note) |
The order when specifying False | A-> B-> C-> ..-> X-> Y-> Z-> a-> b-> c-> ..-> x-> y-> z |
Note) A and a, B and b, Y and y, Z and z are considered to be an equal key respectively.