Вопрос

Using the commandline visual basic compiler (vbc.exe) with option VBruntime- does not allow using chr() or chrw() to specify a literal char. MSDN gives "x"c as solution to specify a literal character. That works fine, but how can i specify a literal character for a integer value.

Это было полезно?

Решение

You should be able to use System.Convert.ToChar() to convert an integer to a character value. That is defined in mscorlib so it will be available no matter what your command line options.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top