Page 1 of 1

Word at caret position

Posted: Tue Dec 31, 2013 2:20 pm
by Jim Knopf
Hi,

how can I retrieve the current word at the caret position? Something like SelectCurrentWord but no selection instead of it the word as result of a function.

e.g.

Code: Select all

AString := rve.GetCurrentWord;

Posted: Wed Jan 01, 2014 6:24 pm
by Sergey Tkachenko
Use GetCurrentWord function from RVGetTextW unit (or from RVGetText, if you want an AnsiString version)

Posted: Thu Jan 02, 2014 9:30 am
by Jim Knopf
Oh, very cool collection!

Thanks