在VB6标签中显示“≤”字符

时间:2017-02-16 13:42:53

标签: vb6 special-characters

我正在尝试将 import java.util.concurrent.TimeUnit; import org.apache.log4j.Logger; import org.apache.log4j.PropertyConfigurator; import org.openqa.selenium.By; import org.openqa.selenium.NoSuchElementException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.Wait; import com.google.common.base.Function; 字符设置为 VB6

查看https://en.wikipedia.org/wiki/List_of_Unicode_characters

代码为2264。

Label会产生错误 Label.Text = Chr(2264)设置问号“?”

有谁知道如何获得此Label.Text = ChrW$(2264)字符

2 个答案:

答案 0 :(得分:1)

Label.Text = ChrW(&H2264) ' <-- &H for Hexadecimal

2264十六进制代码,您可以看到它here

在十进制中,它是ChrW(8804)

答案 1 :(得分:0)

股票Symbol字体在ansi代码点包含该符号,因此在不需要unicode感知的情况下工作,作为一个包含3个自动调整标签的设计示例:

lbl_left.Caption = "999"

lbl_middle.Font.Name = "Symbol"
lbl_middle.Caption = ChrW$(&HA3)
lbl_middle.Left = lbl_left.Left + lbl_left.Width + Me.TextWidth(" ")

lbl_right.Caption = "1000"
lbl_right.Left = lbl_middle.Left + lbl_middle.Width + Me.TextWidth(" ")
相关问题