Options

Displaying directory / folder names in CONFIRM

serdarulutasserdarulutas Member Posts: 50
I have searched the forum but could not find anything about it.

I have a simple question about CONFIRM message. When I run the following code
IF CONFIRM(STRSUBSTNO('Test directory: %1','C:\test\test2')) THEN;
Navision displays the attached message. It considers '\' characters as NL character and confirmation message becomes unreadable. Does anybody know how to display this message properly.

I tried to use FORMAT function as well, but no lock so far. Using C:\\test\\test2 as input results in multiple new line characters in the confirmation message.

Thanks for your help

Answers

  • Options
    krikikriki Member, Moderator Posts: 9,098
    try:
    IF CONFIRM('Test directory: %1',false,'C:\test\test2') THEN;
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    garakgarak Member Posts: 3,263
    not tested, but it should work:
    IF CONFIRM('Test directory: %1',true,'C:\test\test2') THEN;
    

    Regards
    Do you make it right, it works too!
  • Options
    serdarulutasserdarulutas Member Posts: 50
    Thanks Kriki. I knew it was simple :)
  • Options
    garakgarak Member Posts: 3,263
    Arg, alain, a few seconds faster ......
    Do you make it right, it works too!
Sign In or Register to comment.