04-27-2008, 11:32 AM
QM 2.3.0.0 - Unicode Characters Selection - Bytes and Characters
Using
i=findrx(s rx i flags|8 length)
it obtains position (i) and length (length) in bytes.
To select found string using findrx :
SendMessage(h EM_SETSEL i i+length)
where "i and length" in the above statement refer to unicode characters, not to bytes.
Any idea about the way to bridge the gap between numbers of unicode characters and unicode bytes?
Using
i=findrx(s rx i flags|8 length)
it obtains position (i) and length (length) in bytes.
To select found string using findrx :
SendMessage(h EM_SETSEL i i+length)
where "i and length" in the above statement refer to unicode characters, not to bytes.
Any idea about the way to bridge the gap between numbers of unicode characters and unicode bytes?