From time to time we get code that illustrates a problem a user is having when they rely on old-school ASCII. This problem can occur when using the Chr function to create a character.
One example we see reasonably frequently is code to create a string that contains a quote like:
dim someString as String = chr(34) + "someValue" + chr(34)
This style is not necessary and may give unwanted results if you have an unusual string encoding. Instead, you can write this without the use of the Chr function. Here’s how: