Page 1 of 1

GetSelText -A -W

Posted: Sat Feb 13, 2021 6:09 pm
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.)

Re: GetSelText -A -W

Posted: Sat Feb 13, 2021 6:39 pm
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.

Re: GetSelText -A -W

Posted: Sat Feb 13, 2021 7:42 pm
by jgkoehn
All good, thanks for the information that solves my understanding of the code. I sure appreciate you taking the time.