GetSelText -A -W

General TRichView support forum. Please post your questions here
Post Reply
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

GetSelText -A -W

Post by jgkoehn »

When this is used to GetSelText does it include a footnote number? or is the number ignored? (I don't need it in fact I don't want it but I am trying to figure out something.)
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: GetSelText -A -W

Post by Sergey Tkachenko »

When getting a text of selected fragment, most non-text items (such as footnotes) are not included.

If you want to get selected text with all non-text items (for footnotes, it will be not a number but all footnote text inside []) you can use SaveTextToStream/SaveTextToStreamW to save text to a stream, then read a string from this stream.
The parameters must be:
SelectionOnly = True
TextOnly = False.

If you want, I can post a sample code.
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: GetSelText -A -W

Post by jgkoehn »

All good, thanks for the information that solves my understanding of the code. I sure appreciate you taking the time.
Post Reply