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

Re: [Clip] NoteTab Reference Outline for 4.86c

Expand Messages
  • 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 1 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 2 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.