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

Re: [Clip] Re: Modifying GetDocList contents

Expand Messages
  • Don - HtmlFixIt.com
    since I cannot see your data string ... you can manipulate it all sorts of ways ... trim off the end if you added an extra ^P or insert one in front of it ...
    Message 1 of 4 , Dec 9, 2009
    • 0 Attachment
      since I cannot see your data string ...
      you can manipulate it all sorts of ways ... trim off the end if you
      added an extra ^P or insert one in front of it ...
      ^!Set %Titles%=^P^%Titles%
      would add one before first ....
      and you could replace last ^P with regex perhaps ... but not seeing the
      real string, I'm not too sure.

      John Shotsky wrote:
      > Thank you.
      >
      >
      >
      > The first item replaces a ^P with ^PR>, but it looks like it will miss the very first item. I haven't really tried it
      > yet, just trying to understand it. I guess I could implicitly place the first one when I extract the rows, so that
      > should be ok. And it looks like it will give me one at the end that I can delete later. I think this does what I want.
      >
      >
      >
      > Funny how, when you see something done, it's easy to decipher, but if you haven't seen it before, you can't envision
      > where to start.
      >
      >
      >
      > Regards,
      >
      > John
      >
      >
      >
      > From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Sheri
      > Sent: Wednesday, December 09, 2009 5:13 PM
      > To: ntb-clips@yahoogroups.com
      > Subject: [Clip] Re: Modifying GetDocList contents
      >
      >
      >
      >
      >
      > --- In ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> , "John Shotsky" <jshotsky@...> wrote:
      >> I use ^$GetDocListAll to get a list of titles and store them into a variable named %Titles%.
      >>
      >> I'd like to prefix each line in the list with R>. Currently, I
      >> just capture the lines, then ^!InsertText to enter them into my
      >> document all at once. I'm not sure if it is possible to add the
      >> prefixes in the variable, or if I could extract the lines to a
      >> new variable with the prefixes added, or if I can add them on the
      >> fly as they are extracted. It could be done as a post process,
      >> but I'd prefer to handle it one of the other ways if it's more
      >> efficient.
      >
      > Try:
      >
      > ^!Set %Titles%=^$StrReplace("^P";"^PR>";"^%Titles%";No;No)$
      >
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >
      > ------------------------------------
      >
      > Fookes Software: http://www.fookes.com/
      > NoteTab website: http://www.notetab.com/
      > NoteTab Discussion Lists: http://www.notetab.com/groups.php
      >
      > ***
      > Yahoo! Groups Links
      >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.