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

Re: [Clip] Help creating a NoteTab variable from a text file

Expand Messages
  • flo.gehrke
    ... Yes, that works fine for me too. And here is something that possibly could do the full job ;-) With your sample list saved as johnslist.txt, I get to the
    Message 1 of 6 , Oct 1, 2012
    • 0 Attachment
      --- In ntb-clips@yahoogroups.com, Ian NTnerd <indiamcq@...> wrote:
      >
      > John,
      >
      > On NTP 6.2 the following works for me.
      > ^$StrReplace("^p";"|";"^$GetFileText("c:\path\file.txt")$";Yes;Yes)$

      Yes, that works fine for me too. And here is something that possibly could do the full job ;-)

      With your sample list saved as johnslist.txt, I get to the desired result with...

      ^!Set %Var%=^$GetFileText(^$GetDocumentPath$johnslist.txt)$
      ^!Set %Var%=^$StrReplace("^P";"|";^%Var%;A)$
      ^!Set %Var%=^$StrReplace("^|(?=\|)|(?<=\|)";"\\b";^%Var%;RA)$
      ^!Set %Var%=^$StrReplace("\|\\b\Z";"";^%Var%;R)$
      ^!Info ^%Var%

      (designed for Ntb 7.0)

      Regards,
      Flo
    • John Shotsky
      Yes, that is even perfecter! :-) Thanks! Regards, John RecipeTools Web Site: http://recipetools.gotdns.com/ From:
      Message 2 of 6 , Oct 1, 2012
      • 0 Attachment
        Yes, that is even perfecter! :-)
        Thanks!

        Regards,
        John
        RecipeTools Web Site: <http://recipetools.gotdns.com/> http://recipetools.gotdns.com/

        From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of flo.gehrke
        Sent: Monday, October 01, 2012 03:38
        To: ntb-clips@yahoogroups.com
        Subject: Re: [Clip] Help creating a NoteTab variable from a text file


        --- In ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> , Ian NTnerd <indiamcq@...> wrote:
        >
        > John,
        >
        > On NTP 6.2 the following works for me.
        > ^$StrReplace("^p";"|";"^$GetFileText("c:\path\file.txt")$";Yes;Yes)$

        Yes, that works fine for me too. And here is something that possibly could do the full job ;-)

        With your sample list saved as johnslist.txt, I get to the desired result with...

        ^!Set %Var%=^$GetFileText(^$GetDocumentPath$johnslist.txt)$
        ^!Set %Var%=^$StrReplace("^P";"|";^%Var%;A)$
        ^!Set %Var%=^$StrReplace("^|(?=\|)|(?<=\|)";"\\b <file:///\\b> ";^%Var%;RA)$
        ^!Set %Var%=^$StrReplace("\|\\b\Z";"";^%Var%;R)$
        ^!Info ^%Var%

        (designed for Ntb 7.0)

        Regards,
        Flo



        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.