Archive for the ‘Advanced VB.NET’ Category
VB.NET – Char from String with Option Strict
So here’s the question:
I’m using String.Split() and need to pass in a Char or a Char array as the parameter. If I pass in a string String.Split(“/”) I get an error “Option Strict On disallows implicit conversions from ‘String’ to ‘Char’.”
Obviously, the easiest way to fix this would be to turn off Option Strict, but I would prefer to keep it on. So how do I pass in the Char instead of a String in this situation?”

