Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top