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

Same file in both windows.

Expand Messages
  • Jim Hall
    Hi All, The issue of opening the same file in both windows has come up on the NTB list. For anyone who would like to open the same file in both windows, here
    Message 1 of 3 , Dec 16, 2001
      Hi All,

      The issue of opening the same file in both windows has come up on the NTB list.

      For anyone who would like to open the same file in both windows, here is a
      little Clip which allows you to do that hassle free.
      (It uses smoke and mirrors but it works just fine)

      It actually makes a temporary copy of the file under a different filename
      in the left window, makes it read only, then deletes it from the hard
      drive.The original document will be open in the right window. When you
      close the document in the left window it is gone.

      I use it as is but certainly it can be changed several ways to suit your needs.

      Regards,

      Jim






      The Clip below can be copied from this Post to the Windows Clipboard and
      Added to the Current Library using the "Add from Clipboard" Command found
      in the Editor Clipbook Pop Up menu (Right Click in Editor Clipbook Window)
      or from the TOOLS|CLIPBOOK Menu.



      ______[Copy below this line]_______


      H="Edit Copy in Second Window"

      ;Get Name of current document
      ^!Set %oldfilename%=^$GetDocName$
      ;Extract path info
      ^!Set %path%=^$Getpath(^%oldfilename%)$
      ;extract filename without path info
      ^!Set %filename%=^$GetFileName(^%oldfilename%)$
      ;Text to insert in old file name
      ^!Set %copy%="Original Copy of "
      ;Build new file name
      ^!Set %newfilename%=^%path%
      ^!Append %newfilename%= ^%copy%
      ^!Append %newfilename%= ^%filename%
      ^!Save AS ^%newfilename%
      ;Make original copy read only
      ^!Keyboard Alt+D O
      ;Copy all text from file 1 in window 1
      ^!Toolbar Copy All
      ;Create file 2 and paste file 1 data to it
      ^!Toolbar Paste New
      ;Open second window with file 2 open in it
      ^!Keyboard Shift+Ctrl+W
      ;Move cursor to top of file
      ^!Keyboard Ctrl+Home
      ;Save the new document to the old document name
      ^!Save AS ^%oldfilename%
      ;Delete the "Original Copy of " old document disk file
      ^!DeleteFile "^%newfilename%"


      _____[Copy above this line]______
    Your message has been successfully submitted and would be delivered to recipients shortly.