Forum Discussion
- shankar_rCommunity Hero
Hi,
Not sure, what you are asking.
aqString.Compare("Energiezähler", "ENERGIEZÄHLER", false)
above line will return 0 if both values matched.
From TC docuement:
Result Value
Integer value that indicates the comparison result. The following values are possible:
Value Meaning -1 The String1 is less than String2. 0 The String1 identical to String2. 1 The String1 is greater than String2.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/compare.html
- Manfred_FRegular Contributor
To be more precise, I get the Result 1, not 0.
When I remove the "Ä"/ "ä", there is the 0, as expected.
- tristaanogreEsteemed Contributor
I have the following code (in JScript):
function test3() { Log.Message(aqString.Compare('Energiezähler','ENERGIEZÄHLER', false)); }
And this is returning a 0 as expected. I'm running TC 12.30. I don't have 11.2 installed to verify. It's possible that better support for extended ASCII within the aqString object may be included in later versions. I'd suggest you send this query off to the support team directly.
Related Content
- 8 years ago
- 6 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago