Recent

Author Topic: [Solved] Help with spellcheck style  (Read 848 times)

Espectr0

  • Full Member
  • ***
  • Posts: 221
[Solved] Help with spellcheck style
« on: May 26, 2023, 09:31:57 pm »
Hola,

I have certain lines of text which I want to go through each word and then check them with a dictionary for example (like a spellcheck),
but when showing the current word in TMemo (selecting it), there are words that it does not select properly...
you can check the basic example attached and guide me to know what error I have ?

Thanks!
« Last Edit: May 27, 2023, 12:04:27 pm by Espectr0 »

paweld

  • Hero Member
  • *****
  • Posts: 1268
Re: Help with spellcheck style
« Reply #1 on: May 27, 2023, 09:20:50 am »
there are non-ASCII characters in the text, and then the length of such a character is greater than 1 byte (up to a maximum of 4 bytes). 
Use a UTF8Length function instead of Length

Best regards / Pozdrawiam
paweld

Espectr0

  • Full Member
  • ***
  • Posts: 221
Re: Help with spellcheck style
« Reply #2 on: May 27, 2023, 12:04:11 pm »
Thanks @paweld!
« Last Edit: May 27, 2023, 02:48:54 pm by Espectr0 »

 

TinyPortal © 2005-2018