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

topics in otl

Expand Messages
  • Dave
    Hi What is the best way to detect end of text in a topic ,any ideas , end of text in a topic does not seem to be reliable.??? THANKYOU DAVE
    Message 1 of 2 , Dec 2, 2004
    • 0 Attachment
      Hi
      What is the best way to detect end of text in a topic ,any ideas , end of
      text in a topic does not seem to be reliable.???

      THANKYOU DAVE
    • Larry Hamilton
      Dave, An otl file is a regular text file that has = V4 Outline MultiLine NoSorting TabWidth=30 as the first line of the file. If you add this to a text file,
      Message 2 of 2 , Dec 2, 2004
      • 0 Attachment
        Dave,

        An otl file is a regular text file that has

        = V4 Outline MultiLine NoSorting TabWidth=30

        as the first line of the file. If you add this to a text file, no matter
        what the extension, NoteTab will see an otl.

        Each topic is set off by

        H="topicname"

        If you search for the H=" and go up a line or back 3 characters, you
        will have the end of the topic.

        There are a couple of ways to handle this. The file could be read into
        memory and processed looking for the H=". Or you could make a copy of
        the file without the first line and act on it via a clip(s) in NoteTab.
        Or you could build a clip to go from topic to topic and highlight the
        whole topic with a select all and then go to the end of the selection.
        It all depends on what you are trying to do.

        Larry Hamilton
        lmh@...
        My Webpage
        http://members.tripod.com/~notlimah/index.htm
        Sales Affiliate for Grisoft Anti-Virus

        Dave wrote:
        > Hi
        > What is the best way to detect end of text in a topic ,any ideas , end of
        > text in a topic does not seem to be reliable.???
        >
        > THANKYOU DAVE
      Your message has been successfully submitted and would be delivered to recipients shortly.