Loading ...
Sorry, an error occurred while loading the content.

22657Doc Count Function

Expand Messages
  • Art Kocsis
    May 2, 2012
    • 0 Attachment
      Is there a function to return the number of open documents in an instance
      of Notetab (i.e., the max valid value of ^!SetDocIndex)?

      If not, there should be.

      If not, would this be a reliable workaround?

      ^!Set %curIndx%=^$GetDocIndex$ [Capture current doc index]
      ^!Document LAST [Switch to last doc]
      ^!Set %maxIndx%=^$GetDocIndex$ [Save index of last doc]
      ^!SetDocIndex=^%curIndx% [Switch back to original doc]

      Namaste', Art
    • Show all 5 messages in this topic