Components/MailProcessing/SendExceptionMail.xaml: Compiler error(s) encountered processing expression “mailitem.Subject.Replace(CHR(34).toString, “”)”.(2) : error BC30451: ‘CHR’ is not declared. It may be inaccessible due to its protection level.
(2) : error BC30451: ‘CHR’ is not declared. It may be inaccessible due to its protection level.
I have converted my process from Windows Legacy to Windows.
Afterwards i have removed unused imports, because it was recomended by the studio.
Now i have the issue that i cannot use ascii characters with the CHR function anymore and i do not know how to get the function back. I need to have it.
Can you check If there is Microsoft.VisualBasic in Import tab? if there isn’t, can you add it?
Or try
Microsoft.VisualBasic.Strings.Chr(34)
If Microsoft.visualBasic cannot be added, can you check if there is the following element under <sco:Collection x:TypeArguments="AssemblyReference"> in your xaml file using text editor?
Could you, please, specify which version of Studio you used when encountering this issue?
I’ve tried reproducing this in my setup with Studio 23.4.3 released version and I did not replicate the error. After converting from Windows-Legacy to Windows, the CHR method worked as expected.