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

Re: [Clip] Changing numbers to ordinal

Expand Messages
  • Don - htmlfixit.com
    typo this line? ^!If ^$StrCopyRight( ^$GetSelection$ ;1)$ = 4 ^!InsertText ^%num%^%sfx4%
    Message 1 of 10 , Mar 24, 2006
      typo this line?
      ^!If ^$StrCopyRight("^$GetSelection$";1)$ => 4 ^!InsertText ^%num%^%sfx4%
    • hsavage
      ... Don, What about this line indicates a typo, if referencing, greater than, it is there to insure digits 4-9 are handled. I know NoteTab displays it in
      Message 2 of 10 , Mar 24, 2006
        Don - htmlfixit.com wrote:
        > typo this line?
        > ^!If ^$StrCopyRight("^$GetSelection$";1)$ => 4 ^!InsertText ^%num%^%sfx4%

        Don,

        What about this line indicates a typo, if referencing, greater > than,
        it is there to insure digits 4-9 are handled.

        I know NoteTab displays it in help this way, >= returns True if left
        value is greater or equal to right value, but reversing symbols works also.

        ºvº
        06.03.24_17.57
        -Newspaper HeadLine...
        "Iraqi Head Seeks Arms"
        hrs ø hsavage@...
      • Don - htmlfixit.com
        ... Yep didn t realize it worked either way. Excellent job.
        Message 3 of 10 , Mar 25, 2006
          hsavage wrote:
          > Don - htmlfixit.com wrote:
          > > typo this line?
          > > ^!If ^$StrCopyRight("^$GetSelection$";1)$ => 4 ^!InsertText ^%num%^%sfx4%
          >
          > Don,
          >
          > What about this line indicates a typo, if referencing, greater > than,
          > it is there to insure digits 4-9 are handled.
          >
          > I know NoteTab displays it in help this way, >= returns True if left
          > value is greater or equal to right value, but reversing symbols works also.

          Yep didn't realize it worked either way. Excellent job.
        • rickah
          Mr. Savage, Yes, it does work just as you say. Thank you very much. I have added it to my library. Yours, Rick ... clip ... combinations to ... suffix ...
          Message 4 of 10 , Mar 25, 2006
            Mr. Savage,
            Yes, it does work just as you say. Thank you very much. I have
            added it to my library.

            Yours,
            Rick

            --- In ntb-clips@yahoogroups.com, hsavage <hsavage@...> wrote:

            > I thought this might be a useful clip and I went another way. This
            clip
            > should add the correct suffix to any number, I've tested
            combinations to
            > over a thousand. This clip allows you to quickly add an ordinal
            suffix
            > to all numbers.
            >
            > <>·······Start Clip·······<>
            > H="ORDINALS EVERYWHERE"
            <snip>
            > <>········End Clip········<>
            >
            > Each of the longer lines ends with ^!InsertText ^%num%^%sfx(1-4)%
          Your message has been successfully submitted and would be delivered to recipients shortly.