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

Re: [Clip] How to get this done using a clip ?

Expand Messages
  • Don - HtmlFixIt.com
    ... Okay, here is the first version of an answer and some questions: ;Clear all Variables ^!ClearVariables ;get Questions Answered ;long line follows ^!Set
    Message 1 of 4 , Oct 14, 2007
    • 0 Attachment
      janderri wrote:
      > Hi,
      >
      > Is it possible/hard to do, and perhaps how, to get NoteTab to do the following :
      >
      > I want to get a clip to allow me to ask the portion that should be on every line,
      > and then let me enter the first and the last numerical value it should generate, like this :
      >
      > I want to fill the current document with the contents below :
      >
      > Hello Everybody, this is line 07
      > Hello Everybody, this is line 08
      > Hello Everybody, this is line 09
      > Hello Everybody, this is line 10
      > Hello Everybody, this is line 11
      > Hello Everybody, this is line 12
      > Hello Everybody, this is line 13
      > Hello Everybody, this is line 14
      >
      Okay, here is the first version of an answer and some questions:

      ;Clear all Variables
      ^!ClearVariables
      ;get Questions Answered
      ;long line follows
      ^!Set %Question%=^?{}; %StartNo%=^?{Start
      Number=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200};
      %FinishNo%=^?{Finish
      Number=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200}
      ;end of long line

      ;run loop
      :Loop
      ^!If "^%StartNo%" > "^%FinishNo%" End
      ;insert the question, the number, and new line
      ^!InsertText ^%Question% ^%StartNo%^%NL%
      ;increase the StartNo
      ^!Inc %StartNo%
      ^!Goto :Loop
      ;this is line 30 including blank lines

      Notice that there is one really really long line in the middle there ...
      should be 30 lines total.

      Also, you could skip the numbers entirely.

      I did not:
      1. pad small numbers with zeros
      2. delete all contents of current document before doing this text entry or
      3. instead created a new document.

      I hope this gets you going. All things are possible with notetab and clips.
    • janderri
      ... That does it great Don. Now I ll start learning how it s done ! :-) Thanks a lot !!!
      Message 2 of 4 , Oct 14, 2007
      • 0 Attachment
        --- In ntb-clips@yahoogroups.com, "Don - HtmlFixIt.com" <don@...> wrote:
        >
        > janderri wrote:
        > > Hi,
        > >
        > > Is it possible/hard to do, and perhaps how, to get NoteTab to do the following :
        > >
        > > I want to get a clip to allow me to ask the portion that should be on every line,
        > > and then let me enter the first and the last numerical value it should generate, like this :
        > >
        > > I want to fill the current document with the contents below :
        > >
        > > Hello Everybody, this is line 07
        > > Hello Everybody, this is line 08
        > > Hello Everybody, this is line 09
        > > Hello Everybody, this is line 10
        > > Hello Everybody, this is line 11
        > > Hello Everybody, this is line 12
        > > Hello Everybody, this is line 13
        > > Hello Everybody, this is line 14
        > >
        > Okay, here is the first version of an answer and some questions:
        >
        > ;Clear all Variables
        > ^!ClearVariables
        > ;get Questions Answered
        > ;long line follows
        > ^!Set %Question%=^?{}; %StartNo%=^?{Start
        > Number=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200};
        > %FinishNo%=^?{Finish
        > Number=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200}
        > ;end of long line
        >
        > ;run loop
        > :Loop
        > ^!If "^%StartNo%" > "^%FinishNo%" End
        > ;insert the question, the number, and new line
        > ^!InsertText ^%Question% ^%StartNo%^%NL%
        > ;increase the StartNo
        > ^!Inc %StartNo%
        > ^!Goto :Loop
        > ;this is line 30 including blank lines
        >
        > Notice that there is one really really long line in the middle there ...
        > should be 30 lines total.
        >
        > Also, you could skip the numbers entirely.
        >
        > I did not:
        > 1. pad small numbers with zeros
        > 2. delete all contents of current document before doing this text entry or
        > 3. instead created a new document.
        >
        > I hope this gets you going. All things are possible with notetab and clips.
        >

        That does it great Don. Now I'll start learning how it's done ! :-)

        Thanks a lot !!!
      • Don - HtmlFixIt.com
        ... There is lots more I might do with that clip, but I figured I didn t want to over-complicate the first one. I tried to comment it a little bit to get you
        Message 3 of 4 , Oct 14, 2007
        • 0 Attachment
          >> I hope this gets you going. All things are possible with notetab and clips.
          >>
          >
          > That does it great Don. Now I'll start learning how it's done ! :-)
          >
          > Thanks a lot !!!
          >
          There is lots more I might do with that clip, but I figured I didn't
          want to over-complicate the first one.

          I tried to comment it a little bit to get you rolling.
        Your message has been successfully submitted and would be delivered to recipients shortly.