Test for existence of Bookmark

Test for existence of Bookmark

2
NewbieNewbie
2

    Nov 09, 2004#1

    Is it possible to check for an existing bookmark? Then if none exists, add whatever?

    Currently I am bookmarking an element (used only once, if at all), if the element doesn't exist, there is a possiblity I may need to add it, but do not want to rewrite the macro. If I can test for the bookmark, it makes it much easier.

    TIA!

    ~Corky

    6,682583
    Grand MasterGrand Master
    6,682583

      Nov 21, 2004#2

      It is not possible to test, if a bookmark exist.

      But if you only want to test for existence of only 1 single bookmark, you can do that with a trick. You go to the end of file, execute the GotoBookMark command and if you are still at the end of the file, the bookmark does not exist. Instead of ExitMacro write what you need, if the bookmark does not exist. Here are the macro commands for this trick.

      Bottom
      GotoBookMark
      IfEof
      ExitMacro
      EndIf
      Top
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Nov 24, 2004#3

        Excellent! Thanks very much :D