Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3944
    danderson
    Member

    I see that there is a way to get the selection text via macro (editor.ActiveDocument.selection.Text), but I do not see a similar way to get the entire document text via a macro. Is it possible to do this?

    #3949
    Yutaka Emura
    Keymaster

    That is true. You cannot get the entire text except by first selecting the entire document by SelectAll() method.

    #3953
    danderson
    Member

    Thanks. I will use that.

    It would be nice to have a simple property. That way I wouldn’t have to save the current select start and end, select the entire document, set the selection start and end back when I want to get the entire document text without changing the selection. It also would prevent the “screen flashing” that occurs. I realize that I am being very picky :)

    #3971
    danderson
    Member

    I figured out how to do this without any screen flashing by reordering my code a bit. I also noticed the window.redraw function which I haven’t needed to try. Makes the enhancement more of a nice to have simplification, but not really all that critical. Thanks for the suggestion.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.