Hello ,
Till Version 2015 it was possible to save Special characters in C/AL Code. Example: startpos := 'š';. In Version 2016 it is not. After saving the object it is replaced with some other value (here it is saved as : startpos := 's';). Does anybody know the reason of this? Is it an Error in Version 2016 ?
Thanks for your Feedback.
Regards
JRE
0
Comments
Like for putting a tab-char in a textvar:
TheTab as Text1
TheTab := 'x';
TheTab[1] := 9;
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I have the same problem than "jre". I dont understand your solution, could you explain it, please? Anyway, I opened another thread.
Regards.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
For unicode characters with codepoints greater that 255, you can use that, but š is U+0161.
The character is actually preserved in an MLCaption, and even displayed correctly.
The character is also preserved in an ML Text Constant, and in any other property value, but this time, it is not properly displayed.
I guess, the only solution is to mess with DotNet string encodings, or read your text from a file or blob, with the proper encoding in place, but I did not try that.
The workaround is exactly what kriki wrote.
You can find the Ascii value If you have an old Version of Navision where these characters work, you can do EVALUATE(Asciivalue,FORMAT(startPos,0,'<NUMBER>'));
Use this Ascii Value for startpos(Example: startpos := 353;)
Regards,
JRE
startpos is char