Clear All Bookmarks

Clear All Bookmarks

2
NewbieNewbie
2

    Dec 16, 2010#1

    Can I issue a Clear All Bookmarks command from a script? I've done a quick search and there doesn't seem to be such a command available to script?

    6,603548
    Grand MasterGrand Master
    6,603548

      Dec 16, 2010#2

      The command Clear All Bookmarks is not available as script or macro command. However, the macro code I posted at Clear All Bookmarks in Macro can be very easily converted to script function.

      Code: Select all

      function ClearAllBookmarks () {
         while (true) {
            UltraEdit.activeDocument.bottom();
            UltraEdit.activeDocument.previousBookmark();
            if (UltraEdit.activeDocument.isEof()) break;
            UltraEdit.activeDocument.toggleBookmark();
         }
         UltraEdit.activeDocument.top();
      }
      Best regards from an UC/UE/UES for Windows user from Austria