Read single character from uni-string
Posted: Wed Sep 25, 2019 5:48 pm
Hello,
I use WinCC-OA 3.16P11.
Is it possible to read a single character from an uni-string. Adressing characters with [index] seems to work byte-wise only.
For example reading the 3. character ("ö") from string "aböcd" does not work with string[2]. Also I could not find any uniStr-function that has this functionality.
Use-case is to make a filter-string from the original string that ignores case with patternMatch(), for example the filter string for "aböcd" would be "[aA][bB][öÖ][cC][dD]".
Is there any way to achieve this?
Kind regards
I use WinCC-OA 3.16P11.
Is it possible to read a single character from an uni-string. Adressing characters with [index] seems to work byte-wise only.
For example reading the 3. character ("ö") from string "aböcd" does not work with string[2]. Also I could not find any uniStr-function that has this functionality.
Use-case is to make a filter-string from the original string that ignores case with patternMatch(), for example the filter string for "aböcd" would be "[aA][bB][öÖ][cC][dD]".
Is there any way to achieve this?
Kind regards