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

Re: Select Matching TAGS - clip

Expand Messages
  • Wayne VanWeerthuizen
    ... Should rather be ^!Set %TAG%= ^$GetHtmlTagName( ^$GetHtmlTag$ ;lowercase)$ ... Format parameter is not optional if the TagStr might contain semicolons.
    Message 1 of 1 , Apr 3, 2002
    • 0 Attachment
      John wrote:

      >Your clip seems to work very well Hugo (after removing the line
      >breaks created by yahoo), but I have noticed one little quirk it
      >produces.. On certain hyperlinks, I get a NoteTab syntax error on
      >this line of the clip:
      >
      >^!Set %TAG%=^$GetHtmlTagName("^$GetHtmlTag$")$

      Should rather be

      ^!Set %TAG%="^$GetHtmlTagName("^$GetHtmlTag$";lowercase)$"

      >But there is no syntax error there I can see.. I traced it to what
      >appears to be a quirk in the NoteTab function of:

      >^$GetHtmlTagName("TagStr"[;Format])$

      Format parameter is not optional if the TagStr might
      contain semicolons. As this is not always predictable,
      I recommend that the format parameter always be specified.


      Hugo wrote:
      >> ;---------------------------------------------------
      >> : SELECT MATCHING TAGS (Hugo Paulissen, March 2002)
      >> ;---------------------------------------------------
      >> ;
      >> ; Clip searches for previous occurence of < first,
      >> ; which allows for repetive "searches". You can
      >> ; easily remove comments. | Use at your own risk ;-)
      >> ;---------------------------------------------------
      >> ^!SetScreenUpdate OFF
      >> ;^!SetDebug ON
      >> ^!Jump SELECT_START
      >> :FINDTAG
      >> ^!find "<" BS
      >> :SETTAG
      >> ^!Set %TAG%=^$GetHtmlTagName("^$GetHtmlTag$")$
      >> ^!Set %STARTPOS%=^$GetRow$:^$GetCol$
      >> ;---------------------------------------------------
      >> ; Following lines check for "<!" and "</" tags
      >> ;---------------------------------------------------

      etc.

      Nice clip, Hugo.
    Your message has been successfully submitted and would be delivered to recipients shortly.