Brent Jenkins:
if ((current == 0x9 || current == 0xA || current == 0xD) ||
((current >= 0x20) && (current <= 0xD7FF)) ||
((current >= 0xE000) && (current <= 0xFFFD)) ||
((current >= 0x10000) && (current <= 0x10FFFF)))
I am having difficulty getting the above line converted to VB.NET. See C# and VB.NET do character to integer conversion a little differently. What I end up with is the following design time error:
" Operator '=' is not defined for types 'Char' and 'Integer'"
The code by the way in VB.NET for that line is as follows:
If (current = &H9 OrElse current = &HA OrElse current = &HD) OrElse ((current >= &H20) AndAlso (current <= &HD7FF)) OrElse ((current >= &HE000) AndAlso (current <= &HFFFD)) OrElse ((current >= &H10000) AndAlso (current <= &H10FFFF)) Then
textOut.Append(current)
End If
Now I have been trying some combinations of getting the Ascii value via 'Asc()' or converting values to thier hex value via conversion functions, but to no immdeate avail.
Any ideas on how to make proper comparisons on the code above?