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

Re: [Clip] NoteTab Reference Outline for 4.86c

Expand Messages
  • Wayne VanWeerthuizen
    ... Here s another sample page. AddHeading Usage
    Message 1 of 5 , Apr 3, 2002
    • 0 Attachment
      I wrote:

      >I will reply to this post periodically with sample pages (not all pages
      >though), until the finished outline is ready for public release.

      Here's another sample page.



      AddHeading

      Usage
      ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
      ^!AddHeading "HeadingName"

      Description
      ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
      Adds a new heading to the active Outline document.

      Examples
      ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
      ^!AddHeading "My New Topic"

      Potential Problems / Issues to Be Aware Of
      ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
      1. Cursor focus is moved to the edit window and the new topic.

      2. If the "Sort Headings" option is enabled, the heading will be
      inserted in sorted position. Otherwise, the heading is inserted
      after the current heading, and before the next.

      3. Has no effect if the current document is not an outline.

      4. Has no effect if the current document is read-only.

      5. Multiple headings with the same name may be added to a document.

      6. Has no effect if the parameter is an empty string, e.g.:
      ^!AddHeading ""

      7. To add a "blank" heading, name it with a single space.
      ^!AddHeading " "

      8. Use of quotes around the heading name is optional, but recommended.
      See [When should I use quotes?] class 2, for details.
      ### Refers to a special topic in this outline. Some of these added
      ### topics have no equivalent in the NoteTab Help files.


      See Help Topic:
      ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
      [Clip Language - Document Processing]

      See Also: Other Commands Related To Outline Documents
      ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
      [AddHeading] Add a heading to an outline document
      [GetTopicCount] Number of topics in an outline
      [GetTopicIndex] Index number of current topic
      [GetTopicName] Name of current outline topic
      [IsOutlineDoc] Is the current document an outline doc?
      [IsShowHeadings] Is "Show Headings" option turned on?
      [SetTopicIndex] Switch to a different outline heading.
      [ShowHeadings] Show/Hide outline headings in editor.
      [Toolbar] ^!Toolbar "Add Heading"
      [Toolbar] ^!Toolbar "Copy Heading"
      [Toolbar] ^!Toolbar "New Outline"
      [Toolbar] ^!Toolbar "Remove Heading"
    • Ville Saalo
      That looks very great, Wayne! It s sometimes very hard to find the appropriate command from NoteTab s own help and I usually do some things in a hard way and
      Message 2 of 5 , Apr 4, 2002
      • 0 Attachment
        That looks very great, Wayne! It's sometimes very hard to find the appropriate
        command from NoteTab's own help and I usually do some things in a hard way
        and the next day find a related command by accident. :)

        Now before I try this myself, does anyone know if there's a command (or clip) for
        substracting times (/dates) to count the duration of some event, eg.
        "14:45 minus 10:30 equals to 4:15 (or to 4.25)"?

        -Ville

        >Wayne wrote:
        >
        >>I will reply to this post periodically with sample pages (not all pages
        >>though), until the finished outline is ready for public release.
        >
        >Among the improvements since the old outline, you will also notice that
        >"See Also" now include brief summaries of the cross-referenced
        >commands and functions, and now also include specific ^!Toolbar commands.
        >
        >Here is a sample page:
        >
        >
        >GetHtmlTagName
        >
        >Usage
        >¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
        >^$GetHtmlTagName("TagStr"[;Format])$
        >
        >Description
        >¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
        >Returns the name of the HTML Tag, either in uppercase or lowercase.
        >
        >If the Format parameter is not specified, the character case is determined
        >by the settings in NoteTab's Options. (But see potential problem below.)
        >
        >Use the Format parameter to control the format of HTML tags. It can have
        >one of the following values: UPPERCASE, LOWERCASE, or XHTML.
        >
        >Examples
        >¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
        >^$GetHtmlTagName("<TD ALIGN="left" WIDTH="250">";LOWERCASE)$
        > -> td
        >
        >
        >Potential Problems / Issues to Be Aware Of
        >¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
        >1. Note that:
        >
        > ^!Set %TAGNAME%=^$GetHtmlTagName("<anytag attr="<">")$
        >
        > will give a syntax error. The format parameter is not really optional
        > if the TagStr might contain semicolons. As this is not always
        > predictable, I recommend that the format parameter always be specified.
        >
        >2. ### What is XHTML?
        >
        >
        >Availability
        >¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
        >NoteTab Pro 4.8, NoteTab Std 4.8, NoteTab Lite 4.8
        >
        >See Help Topic:
        >¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
        >[Clip Language - HTML Processing]
        >
        >See Also:
        >¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
        >[EditStyleAttr] Opens TopStyle in inline editing mode.
        >[EditStyleBlock] Opens TopStyle in block editing mode.
        >[EditStyleSheet] Opens TopStyle with specified style sheet.
        >[GetField] Parse delimited text file
        >[GetHtmlFormat] Default format for HTML tags.
        >[GetHtmlTag] HTML tag at cursor position.
        >[GetHtmlTagAttr] Value of the specified HTML attribute.
        >[GetHtmlTagName] Name of the HTML Tag.
        >[GetHtmlTagTidy] Reformatted HTML tag, (fixes case)
        >[GetHtmlTextTidy] utring with HTML tags, (fixes case)
        >[InsertHtml] Insert text with HTML into document
        >[InsertWizardHtml] Insert text with HTML into document, no blank tags
        >[IsHtmlDoc] Is this an HTML document?
        >[SetHtmlFormat] Set preferred case for HTML tags.
        >[StrStripHTML] Remove HTML tags from a string
        >[Toolbar] ^!Toolbar "Characters to HTML"
        >[Toolbar] ^!Toolbar "Document to HTML"
        >[Toolbar] ^!Toolbar "Strip HTML"
        >[Toolbar] ^!Toolbar "Strip Tags"
      • wheeler54321
        ... (or clip) for ... eg. ... Hi! All the credits go to Eb Guenther - the original thread: http://groups.yahoo.com/group/ntb-clips/message/6068 Watch out for
        Message 3 of 5 , Apr 4, 2002
        • 0 Attachment
          > Now before I try this myself, does anyone know if there's a command
          (or clip) for
          > substracting times (/dates) to count the duration of some event,
          eg.
          > "14:45 minus 10:30 equals to 4:15 (or to 4.25)"?
          >
          > -Ville

          Hi!

          All the credits go to Eb Guenther - the original thread:
          http://groups.yahoo.com/group/ntb-clips/message/6068

          Watch out for long lines

          ;_____________________________________
          ^!SetListDelimiter ":"
          ^!SetArray %ST%=^?{Starting Time (hh:nn:ss)};%ET%=^?{Ending Time
          (hh:nn:ss)}

          ;____________ convert to seconds
          ^!Set %Ssec%=^$Calc(^%ST3% + ^%ST2% * 60 + ^%ST1% * 3600)$
          ^!Set %Esec%=^$Calc(^%ET3% + ^%ET2% * 60 + ^%ET1% * 3600)$
          ;____________ midnight correction
          ^!If ^%Ssec%>^%Esec% ^!Inc %Esec% 86400
          ;____________ elapsed time in seconds
          ^!Set %secs%=^$Calc(^%Esec%-^%Ssec%)$
          ;____________ convert to hh:mm:ss, left zero fill
          ^!Set %hrs%=^$StrCopyRight("0^$Calc( ^%secs% DIV 3600)$";2)$
          ^!Set %min%=^$StrCopyRight("0^$Calc((^%secs%-3600*^%secs%DIV3600)
          div60)$";2)$
          ^!Set %sec%=^$StrCopyRight("0^$Calc( ^%secs% MOD 60)$";2)$

          ^!Info [L]End %Start Time:^t^%ST%^%NL%^%NL%End Time:^%NL%^%ET%^%NL%^%
          NL%Elapsed Time:^%NL%^%hrs%:^%min%:^%sec%


          _______
          wheeler
        Your message has been successfully submitted and would be delivered to recipients shortly.