如何在VB.Net字符串文字中表示Unicode字符? [英] How to represent Unicode character in VB.Net String literal?
本文介绍了如何在VB.Net字符串文字中表示Unicode字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道您可以将Unicode字符代码放在这样的VB.Net字符串中:
I know you can put Unicode character codes in a VB.Net string like this:
str = Chr(&H0030) & "More text"
我想知道如何将char代码正确地放入字符串文字中所以我可以从设计者的角度使用Unicode符号。
I would like to know how I can put the char code right into the string literal so I can use Unicode symbols from the designer view.
这甚至可能吗?
推荐答案
使用 ChrW()
函数返回Unicode字符。
Use the ChrW()
function to return Unicode characters.
Dim strW As String
strW = ChrW(&H25B2) & "More text"
这篇关于如何在VB.Net字符串文字中表示Unicode字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文