Display \ character
abartonicek
Member Posts: 162
I searched and I couldn't find the solution so...
Is it possible to show a \ character in a message and NOT causing a new line?
Is it possible to show a \ character in a message and NOT causing a new line?
Better to be critical then self-critical 
0
Comments
-
Try:
MESSAGE('This is a backslash:%1','\');Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki is right0
-
OK, this works

But my reall problem is how to filter with \ character in the filter string
IF I try:rec.SETFILTER(SomeField,'%1','Word1\Word2'); MESSAGE(rec.GETFILTER(SomeField));
then the resulting message is:
Word1
Word2Better to be critical then self-critical
0 -
IF I try:Code:
rec.SETFILTER(SomeField,'%1','Word1\Word2');
MESSAGE(rec.GETFILTER(SomeField));
then the resulting message is:
Word1
Word2
This right b'coz ' 'Word1\Word2' is charecter constant
U have to write message as
MESSAGE('%1', rec.GETFILTER(SomeField));
Then try0 -
Use
MESSAGE('%1',rec.GETFILTER(SomeField)); instead of
MESSAGE(rec.GETFILTER(SomeField));0 -
OK, thx.
That MESSAGE(rec.GETFILTER(SomeField)); was just for testing...
The real problem was setting filter with \ character.
BTW, I used another filter (without \ character) that worked just as well.Better to be critical then self-critical
0 -
[SOLVED]
Hello, I encountered such problem, but in a little another key...
I need to show CONFIRM message, which contains filename with full path, e.g. 'Do you want to delete C:\folder\file.txt?'.
If I use something like thisIF CONFIRM(STRSUBSTNO(Text001,FileName)) THEN ...
whereText001 TextConst 'Do you want to delete %1?' FileName Text250
I get the following:Do you want to delete C:
folder
file.txt?
I tried to use FORMAT(FileName), CONVERTSTR(FileName,'\',Character) where Character is Char and = '\'...
The result is the same...
Then I solved the problem by not using STRSUBSTNO in CONFIRM:IF CONFIRM(Text001,TRUE,FileName) THEN...
It is hard to swim against self bloodstream... (c) Old, experienced kamikadze.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions