VBS实现全角字符转半角字符

标签: , , , ,

既然有《VBS实现半角字符转全角字符》,当然也有VBS实现全角字符转半角字符。

url = "http://demon.tw"
WScript.Echo url
WScript.Echo Full2Half(url)

Function Full2Half(ByVal s)
    'By Demon
    'https://demon.tw
    Dim i
    For i = &HFF01 To &HFF7E
        s = Replace(s, ChrW(i), ChrW(i - &HFEE0))
    Next
    Full2Half = s
End Function
赞赏

微信赞赏支付宝赞赏

随机文章:

  1. VB编程实现XP风格
  2. Unable to find the socket transport "ssl" – did you forget to enable it when you configured PHP?
  3. WinImage 8.50注册码
  4. WMI工具:Scriptomatic 2.0
  5. 工行网银使用U盾时提示“请选择您要用的证书”

留下回复