How to represent Unicode character in VB.Net String literal?

后端 未结 7 1768
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 20:41

I know you can put Unicode character codes in a VB.Net string like this:

str = Chr(&H0030) & \"More text\"

I would like to know how

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 21:29

    Use the ChrW() function to return Unicode characters.

    Dim strW As String
    strW = ChrW(&H25B2) & "More text"
    

提交回复
热议问题