Newline Character

jyotsnasjyotsnas Member Posts: 62
edited 2003-10-22 in Navision Attain
Hi All

I want to send a mail through navision. In the message body, I want to insert four lines. And each one starting at a new line. How do I insert a new line character in the message text ?

Regards
Jyotsna
______Doubt is the father of Invension_______

Comments

  • WaldoWaldo Member Posts: 3,412
    This code should do the trick
    //char13 and char10 are both variables of datatype "char"
    
    char13 := 13;
    char10 := 10;
    
    IF recMailLines.FIND('-') THEN
      REPEAT
        vBody := vBody + recMailLines.Text + FORMAT(char13) + FORMAT(char10);
      UNTIL recDocMailLines.NEXT = 0;
    

    So, use the two formats ...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • jyotsnasjyotsnas Member Posts: 62
    Thanks alot

    Jyotsna
    ______Doubt is the father of Invension_______
  • BGIBGI Member Posts: 176
    This is very strange.
    I try to use the same trick and i don't get multiple lines.
    I'm using 3.60, but the old 2.60 way of sending mails because with the automation of 3.60 you can't add multiple attachments. Also the smtp ocx isn't a valid solution, because smtp is blocked on the internal network of the customer.
    Rgds
    Benny Giebens
Sign In or Register to comment.