\ in text messages?

krzychub83krzychub83 Member Posts: 120
Silly problem...

My client wants to use '\' in series No..
Every message box treats \ as the Environment New Line. How to force NAV to show '\' character?

Thank You

Answers

  • Sandeep_PrajapatiSandeep_Prajapati Member Posts: 151
    no problem ...... :P
    The following msg prints the whole 'aaa\bbb\001' and not in different new lines as ....
    aaa
    bbb
    001


    str := 'aaa\bbb\001';
    message('%1',str);
    Sandeep Prajapati
    Technical Consultant, MS Dynamics NAV
  • kinekine Member Posts: 12,562
    But still, I will strongly recommend not to use this "special" character in the nos. seres. It can lead just into troubles. Try to offer him another solution (try to find out what is the real problem first - why they need this character there) - after that you can prepare some solution which will not use such a character...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • krikikriki Member, Moderator Posts: 9,110
    The '-' would be a lot better. But best is NOT to use such characters.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • krzychub83krzychub83 Member Posts: 120
    Thank you Kine, Sandeep Prajapati
    I am trying to do this, but my Client has it's own vision of NAV.

    Thank You
  • krzychub83krzychub83 Member Posts: 120
    Thank You kriki too
  • kinekine Member Posts: 12,562
    krzychub83 wrote:
    Thank you Kine, Sandeep Prajapati
    I am trying to do this, but my Client has it's own vision of NAV.

    Thank You

    You need to find the arguments why to not use it, and why to use another approach.

    If they are not listening, than is time to write this request on paper, write your recommendation not to use it, sign it, and than you can do what they want. But the future problems around that will cost them something... and they must know about that...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ayhan06ayhan06 Member Posts: 210
    kriki wrote:
    The '-' would be a lot better. But best is NOT to use such characters.
    fyi:
    math operators(*,+,-) shouldn't be used because they can led to problems in analysis reports
Sign In or Register to comment.