Announcement

Collapse
No announcement yet.

True carriage return?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    True carriage return?



    Well I've managed to output a nice text file except for one teeny
    problem. When I use this

    <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $ asciichar(10)}">

    I end up with this:

    <?xml version="1.0"?>
    <rss version="2.0">
    <channel>


    Instead of:

    <?xml version="1.0"?>
    <rss version="2.0">
    <channel>

    I then tried using the escape character (ie. the backslash) and
    hitting enter everywhere I needed a new line, but still end up with
    the
    . How can I get each line ON a separate line?

    Sandy


    #2
    True carriage return?



    By MvEXPORTing each line as a seperate line.

    /Scott

    --- Sandy Rozhon <[email protected]> wrote:
    > Well I've managed to output a nice text file except for
    > one teeny
    > problem. When I use this
    >
    > <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $
    > asciichar(10)}">
    >
    > I end up with this:
    >
    > <?xml version="1.0"?>
    <rss
    > version="2.0">
    <channel>

    >
    > Instead of:
    >
    > <?xml version="1.0"?>
    > <rss version="2.0">
    > <channel>
    >
    > I then tried using the escape character (ie. the
    > backslash) and
    > hitting enter everywhere I needed a new line, but still
    > end up with
    > the
    . How can I get each line ON a separate line?
    >
    > Sandy




    __________________________________
    Yahoo! Messenger
    Show us what our next emoticon should look like. Join the fun.
    <A HREF ="http://www.advision.webevents.yahoo.com/emoticontest">http://www.advision.webevents.yahoo.com/emoticontest</A>

    Comment


      #3
      True carriage return?



      On 2 Apr 2005 at 17:05, Scott McC wrote:

      > By MvEXPORTing each line as a seperate line.

      Oh, ACK! I thought it might be something inconvenient like that.
      Ok, thanks. I'll give that a try.

      Sandy

      Comment


        #4
        True carriage return?



        Sandy,
        A trick I learned, possibly from Ivo, like so:

        <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $ asciichar(10)}">
        <MvASSIGN NAME="l.text" VALUE="{'A line of text.'$l.cr$'Another
        line.'$l.cr$asciichar(13)}">
        <MvEXPORT
        FILE = "filename.txt"
        FIELDS = "null,null"
        DELIMITER = "{l.text}" >

        I had to add the two non-existent "null" fields to make it work right and
        also had to have the trailing asciichar(13) to end the file with a carriage
        return (l.cr). There may be a limit to the size of l.text, but I have no
        idea.

        HTH
        Bill M.
        > -----Original Message-----
        > From: [email protected]
        > [mailto:[email protected]] On Behalf Of Sandy Rozhon
        > Sent: Saturday, April 02, 2005 7:22 PM
        > To: Miva Userlist
        > Subject: [meu] True carriage return?
        >
        >
        > Well I've managed to output a nice text file except for one teeny
        > problem. When I use this
        >
        > <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $ asciichar(10)}">
        >
        > I end up with this:
        >
        > <?xml version="1.0"?>
        <rss version="2.0">
        <channel>

        >
        > Instead of:
        >
        > <?xml version="1.0"?>
        > <rss version="2.0">
        > <channel>
        >
        > I then tried using the escape character (ie. the backslash) and
        > hitting enter everywhere I needed a new line, but still end up with
        > the
        . How can I get each line ON a separate line?
        >
        > Sandy
        >

        Comment


          #5
          True carriage return?



          On 2 Apr 2005 at 23:49, Bill Matlock wrote:

          > Sandy,
          > A trick I learned, possibly from Ivo, like so:
          >
          > <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $ asciichar(10)}">
          > <MvASSIGN NAME="l.text" VALUE="{'A line of text.'$l.cr$'Another
          > line.'$l.cr$asciichar(13)}">

          I tried that but the text file showed something like this
          A line of text
          Another line.


          Now I didn't try the two nulls. Do you think that was a difference?

          Sandy

          Comment


            #6
            True carriage return?



            Probably, give it a try. I use this technique all the time.

            Bill M.

            > -----Original Message-----
            > From: [email protected]
            > [mailto:[email protected]] On Behalf Of Sandy Rozhon
            > Sent: Sunday, April 03, 2005 7:44 PM
            > To: [email protected]
            > Subject: RE: [meu] True carriage return?
            >
            >
            > On 2 Apr 2005 at 23:49, Bill Matlock wrote:
            >
            > > Sandy,
            > > A trick I learned, possibly from Ivo, like so:
            > >
            > > <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $ asciichar(10)}">
            > > <MvASSIGN NAME="l.text" VALUE="{'A line of text.'$l.cr$'Another
            > > line.'$l.cr$asciichar(13)}">
            >
            > I tried that but the text file showed something like this
            > A line of text
            Another line.

            >
            > Now I didn't try the two nulls. Do you think that was a difference?
            >
            > Sandy
            >

            Comment

            Working...
            X