Word at caret position

General TRichView support forum. Please post your questions here
Post Reply
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Word at caret position

Post 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;
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Use GetCurrentWord function from RVGetTextW unit (or from RVGetText, if you want an AnsiString version)
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Post by Jim Knopf »

Oh, very cool collection!

Thanks
Post Reply