VB.Net - Syntax


VB.Net

You cannot assign a string expression to a Char variable, instead you must explicitly ask for a conversion from String to Char using the new CChar conversion function

Dim myChar As Char 
myChar = CChar(Mid("Sometext",3,1))

You can also use the Chr function to convert a Unicode code to a character

myChar = Chr(65) 


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext